discord-jadx/app/src/main/java/defpackage/g.java

30 lines
841 B
Java
Raw Normal View History

2021-06-27 20:44:35 +00:00
package defpackage;
import android.view.View;
2021-11-08 18:25:28 +00:00
import c.a.a.z.c;
import com.discord.stores.StoreGifting;
import com.discord.stores.StoreStream;
2021-06-27 20:44:35 +00:00
/* compiled from: java-style lambda group */
/* renamed from: g reason: default package */
public final class g implements View.OnClickListener {
public final /* synthetic */ int i;
public final /* synthetic */ Object j;
public g(int i, Object obj) {
this.i = i;
this.j = obj;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
int i = this.i;
if (i == 0) {
2021-11-08 18:25:28 +00:00
StoreStream.Companion.getGifting().acceptGift(((StoreGifting.GiftState.RedeemedFailed) this.j).getGift());
2021-06-27 20:44:35 +00:00
} else if (i == 1) {
2021-11-08 18:25:28 +00:00
((c) this.j).dismiss();
2021-06-27 20:44:35 +00:00
} else {
throw null;
}
}
}