apkfuckery/com.discord/smali/h.smali
2020-11-12 02:11:44 +00:00

72 lines
1.6 KiB
Smali

.class public final Lh;
.super Ljava/lang/Object;
.source "java-style lambda group"
# interfaces
.implements Landroid/view/View$OnClickListener;
# instance fields
.field public final synthetic d:I
.field public final synthetic e:Ljava/lang/Object;
# direct methods
.method public constructor <init>(ILjava/lang/Object;)V
.locals 0
iput p1, p0, Lh;->d:I
iput-object p2, p0, Lh;->e:Ljava/lang/Object;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final onClick(Landroid/view/View;)V
.locals 1
iget p1, p0, Lh;->d:I
if-eqz p1, :cond_1
const/4 v0, 0x1
if-ne p1, v0, :cond_0
iget-object p1, p0, Lh;->e:Ljava/lang/Object;
check-cast p1, Lf/a/a/a0/a;
invoke-virtual {p1}, Lcom/discord/app/AppDialog;->dismiss()V
return-void
:cond_0
const/4 p1, 0x0
throw p1
:cond_1
sget-object p1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
invoke-virtual {p1}, Lcom/discord/stores/StoreStream$Companion;->getGifting()Lcom/discord/stores/StoreGifting;
move-result-object p1
iget-object v0, p0, Lh;->e:Ljava/lang/Object;
check-cast v0, Lcom/discord/stores/StoreGifting$GiftState$RedeemedFailed;
invoke-virtual {v0}, Lcom/discord/stores/StoreGifting$GiftState$RedeemedFailed;->getGift()Lcom/discord/models/domain/ModelGift;
move-result-object v0
invoke-virtual {p1, v0}, Lcom/discord/stores/StoreGifting;->acceptGift(Lcom/discord/models/domain/ModelGift;)V
return-void
.end method