2021-08-03 07:33:18 +00:00
|
|
|
package defpackage;
|
|
|
|
|
|
|
|
import android.view.View;
|
2022-03-12 00:35:13 +00:00
|
|
|
import b.a.a.a0.c;
|
2021-11-02 06:38:17 +00:00
|
|
|
import com.discord.stores.StoreGifting;
|
|
|
|
import com.discord.stores.StoreStream;
|
2021-08-03 07:33:18 +00:00
|
|
|
/* compiled from: java-style lambda group */
|
|
|
|
/* renamed from: g reason: default package */
|
2022-03-21 18:52:30 +00:00
|
|
|
/* loaded from: classes2.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public final class g implements View.OnClickListener {
|
2021-12-02 18:53:44 +00:00
|
|
|
public final /* synthetic */ int j;
|
|
|
|
public final /* synthetic */ Object k;
|
2021-08-03 07:33:18 +00:00
|
|
|
|
|
|
|
public g(int i, Object obj) {
|
2021-12-02 18:53:44 +00:00
|
|
|
this.j = i;
|
|
|
|
this.k = obj;
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
|
|
public final void onClick(View view) {
|
2021-12-02 18:53:44 +00:00
|
|
|
int i = this.j;
|
2021-08-03 07:33:18 +00:00
|
|
|
if (i == 0) {
|
2021-12-02 18:53:44 +00:00
|
|
|
StoreStream.Companion.getGifting().acceptGift(((StoreGifting.GiftState.RedeemedFailed) this.k).getGift());
|
2021-08-03 07:33:18 +00:00
|
|
|
} else if (i == 1) {
|
2021-12-02 18:53:44 +00:00
|
|
|
((c) this.k).dismiss();
|
2021-08-03 07:33:18 +00:00
|
|
|
} else {
|
|
|
|
throw null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|