2019-08-05 18:07:42 +00:00
|
|
|
.class public final Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;
|
|
|
|
.super Lcom/discord/app/AppFragment;
|
|
|
|
.source "WidgetSettingsGifting.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$Companion;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
.field public static final Companion:Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$Companion;
|
|
|
|
|
|
|
|
.field public static final VIEW_INDEX_FAILURE:I = 0x1
|
|
|
|
|
|
|
|
.field public static final VIEW_INDEX_LOADED:I = 0x2
|
|
|
|
|
|
|
|
.field public static final VIEW_INDEX_LOADING:I
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-08-20 03:53:10 +00:00
|
|
|
.field private adapter:Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingAdapter;
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
.field private final buyNitroClassicMonthly$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field private final buyNitroClassicYearly$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field private final buyNitroMonthly$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field private final buyNitroYearly$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-08-05 18:07:42 +00:00
|
|
|
.field private final codeInput$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field private final codeInputProgress$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field private final codeInputWrap$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
.field private connection:Landroid/content/ServiceConnection;
|
|
|
|
|
2019-08-05 18:07:42 +00:00
|
|
|
.field private final flipper$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
.field private final nitroClassicLearnMore$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field private final nitroLearnMore$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-08-05 18:07:42 +00:00
|
|
|
.field private final recyclerView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field private final retry$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field private viewModel:Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method static constructor <clinit>()V
|
|
|
|
.locals 5
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
const/16 v0, 0xc
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;
|
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "retry"
|
|
|
|
|
|
|
|
const-string v4, "getRetry()Landroid/view/View;"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;
|
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "flipper"
|
|
|
|
|
|
|
|
const-string v4, "getFlipper()Lcom/discord/app/AppViewFlipper;"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;
|
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "recyclerView"
|
|
|
|
|
|
|
|
const-string v4, "getRecyclerView()Landroidx/recyclerview/widget/RecyclerView;"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;
|
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "codeInput"
|
|
|
|
|
|
|
|
const-string v4, "getCodeInput()Landroidx/appcompat/widget/AppCompatEditText;"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x3
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;
|
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "codeInputWrap"
|
|
|
|
|
|
|
|
const-string v4, "getCodeInputWrap()Lcom/google/android/material/textfield/TextInputLayout;"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x4
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;
|
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "codeInputProgress"
|
|
|
|
|
|
|
|
const-string v4, "getCodeInputProgress()Landroid/view/View;"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x5
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;
|
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "buyNitroYearly"
|
|
|
|
|
|
|
|
const-string v4, "getBuyNitroYearly()Lcom/discord/views/BoxedButton;"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x6
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;
|
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "buyNitroMonthly"
|
|
|
|
|
|
|
|
const-string v4, "getBuyNitroMonthly()Landroid/widget/Button;"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x7
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;
|
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "nitroLearnMore"
|
|
|
|
|
|
|
|
const-string v4, "getNitroLearnMore()Landroid/widget/TextView;"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/16 v2, 0x8
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;
|
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "buyNitroClassicYearly"
|
|
|
|
|
|
|
|
const-string v4, "getBuyNitroClassicYearly()Lcom/discord/views/BoxedButton;"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/16 v2, 0x9
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;
|
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "buyNitroClassicMonthly"
|
|
|
|
|
|
|
|
const-string v4, "getBuyNitroClassicMonthly()Landroid/widget/Button;"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/16 v2, 0xa
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;
|
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "nitroClassicLearnMore"
|
|
|
|
|
|
|
|
const-string v4, "getNitroClassicLearnMore()Landroid/widget/TextView;"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/16 v2, 0xb
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
2019-08-05 18:07:42 +00:00
|
|
|
sput-object v0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$Companion;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->Companion:Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$Companion;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
|
|
|
|
2019-08-22 18:54:10 +00:00
|
|
|
const v0, 0x7f0a06af
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->c(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->retry$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-08-22 18:54:10 +00:00
|
|
|
const v0, 0x7f0a06a5
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->c(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->flipper$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-08-22 18:54:10 +00:00
|
|
|
const v0, 0x7f0a06b0
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->c(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->recyclerView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-08-22 18:54:10 +00:00
|
|
|
const v0, 0x7f0a06a6
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->c(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->codeInput$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-08-22 18:54:10 +00:00
|
|
|
const v0, 0x7f0a06a8
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->c(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->codeInputWrap$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-08-22 18:54:10 +00:00
|
|
|
const v0, 0x7f0a06a7
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->c(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->codeInputProgress$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-08-22 18:54:10 +00:00
|
|
|
const v0, 0x7f0a06ae
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->c(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->buyNitroYearly$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-08-22 18:54:10 +00:00
|
|
|
const v0, 0x7f0a06ad
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->c(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->buyNitroMonthly$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-08-22 18:54:10 +00:00
|
|
|
const v0, 0x7f0a06ac
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->c(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->nitroLearnMore$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-08-22 18:54:10 +00:00
|
|
|
const v0, 0x7f0a06ab
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->c(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->buyNitroClassicYearly$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-08-22 18:54:10 +00:00
|
|
|
const v0, 0x7f0a06aa
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->c(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->buyNitroClassicMonthly$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-08-22 18:54:10 +00:00
|
|
|
const v0, 0x7f0a06a9
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->c(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->nitroClassicLearnMore$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-08-05 18:07:42 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$configureUI(Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel$ViewState;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->configureUI(Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel$ViewState;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getCodeInput$p(Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;)Landroidx/appcompat/widget/AppCompatEditText;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getCodeInput()Landroidx/appcompat/widget/AppCompatEditText;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getViewModel$p(Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;)Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->viewModel:Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel;
|
|
|
|
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
|
|
|
|
const-string v0, "viewModel"
|
|
|
|
|
2019-08-17 08:22:04 +00:00
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/k;->dT(Ljava/lang/String;)V
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
.method public static final synthetic access$openWebBilling(Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->openWebBilling(Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-08-05 18:07:42 +00:00
|
|
|
.method public static final synthetic access$setViewModel$p(Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->viewModel:Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final configureUI(Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel$ViewState;)V
|
2019-08-20 03:53:10 +00:00
|
|
|
.locals 11
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
instance-of v0, p1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel$ViewState$Loading;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getFlipper()Lcom/discord/app/AppViewFlipper;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1, v1}, Lcom/discord/app/AppViewFlipper;->setDisplayedChild(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
instance-of v0, p1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel$ViewState$Failure;
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getFlipper()Lcom/discord/app/AppViewFlipper;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1, v2}, Lcom/discord/app/AppViewFlipper;->setDisplayedChild(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
instance-of v0, p1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel$ViewState$Loaded;
|
|
|
|
|
|
|
|
const/4 v3, 0x2
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getFlipper()Lcom/discord/app/AppViewFlipper;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0, v3}, Lcom/discord/app/AppViewFlipper;->setDisplayedChild(I)V
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
check-cast p1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel$ViewState$Loaded;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel$ViewState$Loaded;->getResolvingGiftState()Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel$ResolvingGiftState;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
instance-of v0, v0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel$ResolvingGiftState$Resolving;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel$ViewState$Loaded;->getResolvingGiftState()Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel$ResolvingGiftState;
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v4
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
instance-of v4, v4, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel$ResolvingGiftState$Error;
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
const/4 v5, 0x0
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
if-eqz v4, :cond_3
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-22 23:43:07 +00:00
|
|
|
const v4, 0x7f1200f6
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {p0, v4}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getString(I)Ljava/lang/String;
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v4
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
2019-08-20 03:53:10 +00:00
|
|
|
move-object v4, v5
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getCodeInputProgress()Landroid/view/View;
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v6
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-static {v6, v0, v1, v3, v5}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy$default(Landroid/view/View;ZIILjava/lang/Object;)V
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getCodeInput()Landroidx/appcompat/widget/AppCompatEditText;
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v6
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
check-cast v6, Landroid/view/View;
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
2019-08-20 03:53:10 +00:00
|
|
|
const/4 v7, 0x0
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-static {v6, v2, v7, v3, v5}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setEnabledAlpha$default(Landroid/view/View;ZFILjava/lang/Object;)V
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getCodeInput()Landroidx/appcompat/widget/AppCompatEditText;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
const/high16 v1, 0x80000
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
invoke-virtual {v2, v1}, Landroidx/appcompat/widget/AppCompatEditText;->setInputType(I)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getCodeInputWrap()Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
check-cast v4, Ljava/lang/CharSequence;
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {v0, v4}, Lcom/google/android/material/textfield/TextInputLayout;->setError(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
iget-object v5, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->adapter:Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingAdapter;
|
|
|
|
|
|
|
|
if-nez v5, :cond_6
|
|
|
|
|
|
|
|
const-string v0, "adapter"
|
|
|
|
|
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/k;->dT(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->generateListItems(Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel$ViewState$Loaded;)Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
new-instance p1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$configureUI$1;
|
|
|
|
|
|
|
|
invoke-direct {p1, p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$configureUI$1;-><init>(Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;)V
|
|
|
|
|
|
|
|
move-object v7, p1
|
|
|
|
|
|
|
|
check-cast v7, Lkotlin/jvm/functions/Function2;
|
|
|
|
|
|
|
|
new-instance p1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$configureUI$2;
|
|
|
|
|
|
|
|
invoke-direct {p1, p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$configureUI$2;-><init>(Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;)V
|
|
|
|
|
|
|
|
move-object v8, p1
|
|
|
|
|
|
|
|
check-cast v8, Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
sget-object p1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$configureUI$3;->INSTANCE:Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$configureUI$3;
|
|
|
|
|
|
|
|
move-object v9, p1
|
|
|
|
|
|
|
|
check-cast v9, Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
sget-object p1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$configureUI$4;->INSTANCE:Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$configureUI$4;
|
|
|
|
|
|
|
|
move-object v10, p1
|
|
|
|
|
|
|
|
check-cast v10, Lkotlin/jvm/functions/Function2;
|
|
|
|
|
|
|
|
invoke-virtual/range {v5 .. v10}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingAdapter;->configure(Ljava/util/List;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;)V
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
.method private final generateListItems(Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel$ViewState$Loaded;)Ljava/util/List;
|
|
|
|
.locals 31
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel$ViewState$Loaded;",
|
|
|
|
")",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingAdapter$GiftItem;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel$ViewState$Loaded;->getMyEntitlements()Ljava/util/Map;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/Map;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingAdapter$GiftItem;
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
const/4 v11, 0x0
|
|
|
|
|
|
|
|
const/16 v12, 0x1fe
|
|
|
|
|
|
|
|
const/4 v13, 0x0
|
|
|
|
|
|
|
|
move-object v2, v1
|
|
|
|
|
|
|
|
invoke-direct/range {v2 .. v13}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingAdapter$GiftItem;-><init>(ILcom/discord/models/domain/ModelGift;Lcom/discord/models/domain/ModelEntitlement;Ljava/lang/Boolean;Lcom/discord/models/domain/ModelSku;Ljava/lang/Integer;Ljava/lang/Long;Ljava/lang/Boolean;Ljava/lang/Boolean;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
goto/16 :goto_b
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel$ViewState$Loaded;->getMyEntitlements()Ljava/util/Map;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/Map;->keySet()Ljava/util/Set;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Ljava/lang/Iterable;
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_e
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
check-cast v2, Ljava/lang/Number;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Number;->longValue()J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel$ViewState$Loaded;->getMyEntitlements()Ljava/util/Map;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-interface {v4, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
check-cast v2, Ljava/util/List;
|
|
|
|
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
|
|
|
|
invoke-static {v2}, Lkotlin/a/m;->ab(Ljava/util/List;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
check-cast v4, Lcom/discord/models/domain/ModelEntitlement;
|
|
|
|
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelEntitlement;->getSku()Lcom/discord/models/domain/ModelSku;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
move-object v10, v4
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel$ViewState$Loaded;->getExpandedSkuIds()Ljava/util/Set;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
check-cast v4, Ljava/lang/Iterable;
|
|
|
|
|
|
|
|
if-eqz v10, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual {v10}, Lcom/discord/models/domain/ModelSku;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v5
|
|
|
|
|
|
|
|
invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-static {v4, v5}, Lkotlin/a/m;->a(Ljava/lang/Iterable;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
new-instance v15, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingAdapter$GiftItem;
|
|
|
|
|
|
|
|
const/4 v6, 0x1
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/16 v17, 0x0
|
|
|
|
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
|
|
|
|
invoke-interface {v2}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
invoke-static/range {v17 .. v17}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
move-object v11, v5
|
|
|
|
|
|
|
|
invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
|
|
|
const/4 v12, 0x0
|
|
|
|
|
|
|
|
const/4 v13, 0x0
|
|
|
|
|
|
|
|
const/4 v14, 0x0
|
|
|
|
|
|
|
|
const/16 v16, 0x1c6
|
|
|
|
|
|
|
|
const/16 v18, 0x0
|
|
|
|
|
|
|
|
move-object v5, v15
|
|
|
|
|
|
|
|
move-object v3, v15
|
|
|
|
|
|
|
|
move/from16 v15, v16
|
|
|
|
|
|
|
|
move-object/from16 v16, v18
|
|
|
|
|
|
|
|
invoke-direct/range {v5 .. v16}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingAdapter$GiftItem;-><init>(ILcom/discord/models/domain/ModelGift;Lcom/discord/models/domain/ModelEntitlement;Ljava/lang/Boolean;Lcom/discord/models/domain/ModelSku;Ljava/lang/Integer;Ljava/lang/Long;Ljava/lang/Boolean;Ljava/lang/Boolean;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
move-object v3, v2
|
|
|
|
|
|
|
|
check-cast v3, Ljava/lang/Iterable;
|
|
|
|
|
|
|
|
invoke-interface {v3}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
if-eqz v7, :cond_1
|
|
|
|
|
|
|
|
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
add-int/lit8 v8, v5, 0x1
|
|
|
|
|
|
|
|
if-gez v5, :cond_5
|
|
|
|
|
2019-08-22 18:54:10 +00:00
|
|
|
invoke-static {}, Lkotlin/a/m;->DY()V
|
2019-08-20 03:53:10 +00:00
|
|
|
|
|
|
|
:cond_5
|
|
|
|
move-object/from16 v22, v7
|
|
|
|
|
|
|
|
check-cast v22, Lcom/discord/models/domain/ModelEntitlement;
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel$ViewState$Loaded;->getMyGifts()Ljava/util/Map;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
invoke-virtual/range {v22 .. v22}, Lcom/discord/models/domain/ModelEntitlement;->getSkuId()J
|
|
|
|
|
|
|
|
move-result-wide v9
|
|
|
|
|
|
|
|
invoke-static {v9, v10}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
|
|
|
invoke-interface {v7, v9}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
check-cast v7, Ljava/util/List;
|
|
|
|
|
|
|
|
if-eqz v7, :cond_6
|
|
|
|
|
|
|
|
invoke-interface {v7}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
const/4 v9, -0x1
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
if-lt v5, v9, :cond_8
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
const/16 v21, 0x0
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
if-eqz v7, :cond_7
|
|
|
|
|
|
|
|
invoke-interface {v7, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
check-cast v7, Lcom/discord/models/domain/ModelGift;
|
|
|
|
|
|
|
|
move-object/from16 v21, v7
|
|
|
|
|
|
|
|
:goto_5
|
|
|
|
if-nez v21, :cond_a
|
|
|
|
|
|
|
|
if-gtz v6, :cond_9
|
|
|
|
|
|
|
|
add-int/lit8 v6, v6, 0x1
|
|
|
|
|
|
|
|
goto :goto_7
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
:goto_6
|
|
|
|
move v5, v8
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
:goto_7
|
|
|
|
new-instance v7, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingAdapter$GiftItem;
|
|
|
|
|
|
|
|
const/16 v20, 0x2
|
|
|
|
|
|
|
|
invoke-virtual/range {v22 .. v22}, Lcom/discord/models/domain/ModelEntitlement;->getSubscriptionPlan()Lcom/discord/models/domain/ModelSubscriptionPlan;
|
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
|
|
|
if-eqz v9, :cond_b
|
|
|
|
|
|
|
|
invoke-virtual {v9}, Lcom/discord/models/domain/ModelSubscriptionPlan;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v9
|
|
|
|
|
|
|
|
invoke-static {v9, v10}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
|
|
|
move-object/from16 v26, v9
|
|
|
|
|
|
|
|
goto :goto_8
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
const/16 v26, 0x0
|
|
|
|
|
|
|
|
:goto_8
|
|
|
|
invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
|
|
|
|
move-result-object v23
|
|
|
|
|
|
|
|
invoke-interface {v2}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
const/4 v10, 0x1
|
|
|
|
|
|
|
|
sub-int/2addr v9, v10
|
|
|
|
|
|
|
|
if-ne v5, v9, :cond_c
|
|
|
|
|
|
|
|
const/4 v5, 0x1
|
|
|
|
|
|
|
|
goto :goto_9
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
:goto_9
|
|
|
|
invoke-static {v5}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
|
|
|
|
move-result-object v27
|
|
|
|
|
|
|
|
if-eqz v21, :cond_d
|
|
|
|
|
|
|
|
invoke-virtual/range {v21 .. v21}, Lcom/discord/models/domain/ModelGift;->getCode()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel$ViewState$Loaded;->getLastCopiedCode()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
|
|
|
invoke-static {v5, v9}, Lkotlin/jvm/internal/k;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-eqz v5, :cond_d
|
|
|
|
|
|
|
|
goto :goto_a
|
|
|
|
|
|
|
|
:cond_d
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
:goto_a
|
|
|
|
invoke-static {v10}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
|
|
|
|
move-result-object v28
|
|
|
|
|
|
|
|
const/16 v24, 0x0
|
|
|
|
|
|
|
|
const/16 v25, 0x0
|
|
|
|
|
|
|
|
const/16 v29, 0x30
|
|
|
|
|
|
|
|
const/16 v30, 0x0
|
|
|
|
|
|
|
|
move-object/from16 v19, v7
|
|
|
|
|
|
|
|
invoke-direct/range {v19 .. v30}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingAdapter$GiftItem;-><init>(ILcom/discord/models/domain/ModelGift;Lcom/discord/models/domain/ModelEntitlement;Ljava/lang/Boolean;Lcom/discord/models/domain/ModelSku;Ljava/lang/Integer;Ljava/lang/Long;Ljava/lang/Boolean;Ljava/lang/Boolean;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
invoke-interface {v0, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_e
|
|
|
|
:goto_b
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
.method private final getBuyNitroClassicMonthly()Landroid/widget/Button;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->buyNitroClassicMonthly$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/16 v2, 0xa
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/widget/Button;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getBuyNitroClassicYearly()Lcom/discord/views/BoxedButton;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->buyNitroClassicYearly$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/16 v2, 0x9
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Lcom/discord/views/BoxedButton;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getBuyNitroMonthly()Landroid/widget/Button;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->buyNitroMonthly$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x7
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/widget/Button;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getBuyNitroYearly()Lcom/discord/views/BoxedButton;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->buyNitroYearly$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x6
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Lcom/discord/views/BoxedButton;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-08-05 18:07:42 +00:00
|
|
|
.method private final getCodeInput()Landroidx/appcompat/widget/AppCompatEditText;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->codeInput$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x3
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroidx/appcompat/widget/AppCompatEditText;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getCodeInputProgress()Landroid/view/View;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->codeInputProgress$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x5
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getCodeInputWrap()Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->codeInputWrap$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x4
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getFlipper()Lcom/discord/app/AppViewFlipper;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->flipper$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Lcom/discord/app/AppViewFlipper;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
.method private final getNitroClassicLearnMore()Landroid/widget/TextView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->nitroClassicLearnMore$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/16 v2, 0xb
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/widget/TextView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getNitroLearnMore()Landroid/widget/TextView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->nitroLearnMore$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/16 v2, 0x8
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/widget/TextView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-08-05 18:07:42 +00:00
|
|
|
.method private final getRecyclerView()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->recyclerView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getRetry()Landroid/view/View;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->retry$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final launch(Landroid/content/Context;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->Companion:Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$Companion;->launch(Landroid/content/Context;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
.method private final openWebBilling(Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;)V
|
|
|
|
.locals 9
|
|
|
|
|
|
|
|
new-instance v8, Lcom/discord/utilities/analytics/Traits$Location;
|
|
|
|
|
|
|
|
const-string v1, "User Settings"
|
|
|
|
|
|
|
|
const-string v2, "Gifting"
|
|
|
|
|
|
|
|
const-string v3, "Button CTA"
|
|
|
|
|
|
|
|
const-string v4, "buy"
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/16 v6, 0x10
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
move-object v0, v8
|
|
|
|
|
|
|
|
invoke-direct/range {v0 .. v7}, Lcom/discord/utilities/analytics/Traits$Location;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/utilities/nitro/NitroUtils;->INSTANCE:Lcom/discord/utilities/nitro/NitroUtils;
|
|
|
|
|
|
|
|
move-object v1, p0
|
|
|
|
|
|
|
|
check-cast v1, Lcom/discord/app/AppFragment;
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, p1, v8, v2}, Lcom/discord/utilities/nitro/NitroUtils;->openWebPurchasePremium(Lcom/discord/app/AppFragment;Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;Lcom/discord/utilities/analytics/Traits$Location;Z)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final getContentViewResId()I
|
|
|
|
.locals 1
|
|
|
|
|
2019-08-22 18:54:10 +00:00
|
|
|
const v0, 0x7f0d01aa
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
.method public final onPause()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->connection:Landroid/content/ServiceConnection;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->requireContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Landroid/content/Context;->unbindService(Landroid/content/ServiceConnection;)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->connection:Landroid/content/ServiceConnection;
|
|
|
|
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onPause()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final onResume()V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onResume()V
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/utilities/nitro/NitroUtils;->INSTANCE:Lcom/discord/utilities/nitro/NitroUtils;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->requireContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v2, "requireContext()"
|
|
|
|
|
|
|
|
invoke-static {v1, v2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/utilities/nitro/NitroUtils;->warmupBillingTabs(Landroid/content/Context;)Landroidx/browser/customtabs/CustomTabsServiceConnection;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/content/ServiceConnection;
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->connection:Landroid/content/ServiceConnection;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-08-05 18:07:42 +00:00
|
|
|
.method public final onViewBound(Landroid/view/View;)V
|
2019-08-20 03:53:10 +00:00
|
|
|
.locals 9
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
const-string v0, "view"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x3
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {p0, v0, p1, v1, p1}, Lcom/discord/app/AppFragment;->setActionBarDisplayHomeAsUpEnabled$default(Lcom/discord/app/AppFragment;ZLjava/lang/Integer;ILjava/lang/Object;)Landroidx/appcompat/widget/Toolbar;
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getRetry()Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
sget-object v2, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$onViewBound$1;->INSTANCE:Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$onViewBound$1;
|
|
|
|
|
|
|
|
check-cast v2, Landroid/view/View$OnClickListener;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getCodeInput()Landroidx/appcompat/widget/AppCompatEditText;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Landroid/widget/EditText;
|
|
|
|
|
|
|
|
new-instance v2, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$onViewBound$2;
|
|
|
|
|
|
|
|
invoke-direct {v2, p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$onViewBound$2;-><init>(Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;)V
|
|
|
|
|
|
|
|
check-cast v2, Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
2019-08-14 23:59:34 +00:00
|
|
|
invoke-static {v1, v0, v2, v3, p1}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setOnImeActionDone$default(Landroid/widget/EditText;ZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getCodeInputWrap()Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v1
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->requireContext()Landroid/content/Context;
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v2
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
const v4, 0x7f06011b
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-static {v2, v4}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroid/content/Context;I)I
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result v2
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-static {v2}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v2
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {v1, v2}, Lcom/google/android/material/textfield/TextInputLayout;->setErrorTextColor(Landroid/content/res/ColorStateList;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getBuyNitroYearly()Lcom/discord/views/BoxedButton;
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v1
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
new-array v2, v3, [Ljava/lang/Object;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
sget-object v4, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->PREMIUM_YEAR_TIER_2:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->getPrice()I
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result v4
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->requireContext()Landroid/content/Context;
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v5
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
const-string v6, "requireContext()"
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-static {v5, v6}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-static {v4, v5}, Lcom/discord/utilities/billing/PremiumUtilsKt;->getFormattedPrice(ILandroid/content/Context;)Ljava/lang/CharSequence;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v4
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
aput-object v4, v2, v0
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-22 23:43:07 +00:00
|
|
|
const v4, 0x7f1202ef
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {p0, v4, v2}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v2
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {v1, v2}, Lcom/discord/views/BoxedButton;->setText(Ljava/lang/String;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getBuyNitroYearly()Lcom/discord/views/BoxedButton;
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v1
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
new-instance v2, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$onViewBound$3;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-direct {v2, p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$onViewBound$3;-><init>(Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
check-cast v2, Landroid/view/View$OnClickListener;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {v1, v2}, Lcom/discord/views/BoxedButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getBuyNitroMonthly()Landroid/widget/Button;
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v1
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
new-array v2, v3, [Ljava/lang/Object;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
sget-object v5, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->PREMIUM_MONTH_TIER_2:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {v5}, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->getPrice()I
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result v5
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->requireContext()Landroid/content/Context;
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v7
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-static {v7, v6}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-static {v5, v7}, Lcom/discord/utilities/billing/PremiumUtilsKt;->getFormattedPrice(ILandroid/content/Context;)Ljava/lang/CharSequence;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v5
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
aput-object v5, v2, v0
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-22 23:43:07 +00:00
|
|
|
const v5, 0x7f1202ed
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {p0, v5, v2}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v2
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
check-cast v2, Ljava/lang/CharSequence;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getBuyNitroMonthly()Landroid/widget/Button;
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v1
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
new-instance v2, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$onViewBound$4;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-direct {v2, p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$onViewBound$4;-><init>(Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
check-cast v2, Landroid/view/View$OnClickListener;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getBuyNitroClassicYearly()Lcom/discord/views/BoxedButton;
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v1
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
new-array v2, v3, [Ljava/lang/Object;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
sget-object v7, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->PREMIUM_YEAR_TIER_1:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {v7}, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->getPrice()I
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result v7
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->requireContext()Landroid/content/Context;
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v8
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-static {v8, v6}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-static {v7, v8}, Lcom/discord/utilities/billing/PremiumUtilsKt;->getFormattedPrice(ILandroid/content/Context;)Ljava/lang/CharSequence;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v7
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
aput-object v7, v2, v0
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {p0, v4, v2}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v2
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {v1, v2}, Lcom/discord/views/BoxedButton;->setText(Ljava/lang/String;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getBuyNitroClassicYearly()Lcom/discord/views/BoxedButton;
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v1
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
new-instance v2, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$onViewBound$5;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-direct {v2, p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$onViewBound$5;-><init>(Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
check-cast v2, Landroid/view/View$OnClickListener;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {v1, v2}, Lcom/discord/views/BoxedButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getBuyNitroClassicMonthly()Landroid/widget/Button;
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v1
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
new-array v2, v3, [Ljava/lang/Object;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
sget-object v3, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->PREMIUM_MONTH_TIER_1:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->getPrice()I
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result v3
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->requireContext()Landroid/content/Context;
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v4
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-static {v4, v6}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-static {v3, v4}, Lcom/discord/utilities/billing/PremiumUtilsKt;->getFormattedPrice(ILandroid/content/Context;)Ljava/lang/CharSequence;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v3
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
aput-object v3, v2, v0
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {p0, v5, v2}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v2
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
check-cast v2, Ljava/lang/CharSequence;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getBuyNitroClassicMonthly()Landroid/widget/Button;
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v1
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
new-instance v2, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$onViewBound$6;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-direct {v2, p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$onViewBound$6;-><init>(Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
check-cast v2, Landroid/view/View$OnClickListener;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getNitroLearnMore()Landroid/widget/TextView;
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v1
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->requireContext()Landroid/content/Context;
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v2
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-static {v2, v6}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-22 23:43:07 +00:00
|
|
|
const v3, 0x7f120dfa
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {p0, v3}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getString(I)Ljava/lang/String;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v3
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
const-string v4, "getString(R.string.premi\u2026ayment_gift_blurb_mobile)"
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-static {v3, v4}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
const-string v5, "https://discordapp.com"
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
const-string v7, "onClick"
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-static {v3, v7, v5, v0}, Lkotlin/text/l;->c(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v3
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
check-cast v3, Ljava/lang/CharSequence;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
sget-object v8, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$onViewBound$7;->INSTANCE:Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$onViewBound$7;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
check-cast v8, Lkotlin/jvm/functions/Function2;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-static {v2, v3, v8}, Lcom/discord/utilities/textprocessing/Parsers;->parseMaskedLinks(Landroid/content/Context;Ljava/lang/CharSequence;Lkotlin/jvm/functions/Function2;)Ljava/lang/CharSequence;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v2
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getNitroClassicLearnMore()Landroid/widget/TextView;
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v1
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->requireContext()Landroid/content/Context;
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v2
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-static {v2, v6}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-22 23:43:07 +00:00
|
|
|
const v3, 0x7f120d73
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {p0, v3}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-static {v3, v4}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v3, v7, v5, v0}, Lkotlin/text/l;->c(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
check-cast v3, Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
sget-object v4, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$onViewBound$8;->INSTANCE:Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$onViewBound$8;
|
|
|
|
|
|
|
|
check-cast v4, Lkotlin/jvm/functions/Function2;
|
|
|
|
|
|
|
|
invoke-static {v2, v3, v4}, Lcom/discord/utilities/textprocessing/Parsers;->parseMaskedLinks(Landroid/content/Context;Ljava/lang/CharSequence;Lkotlin/jvm/functions/Function2;)Ljava/lang/CharSequence;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
sget-object v1, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;->Companion:Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter$Companion;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
new-instance v2, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingAdapter;
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getRecyclerView()Landroidx/recyclerview/widget/RecyclerView;
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v3
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-direct {v2, v3}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingAdapter;-><init>(Landroidx/recyclerview/widget/RecyclerView;)V
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
check-cast v2, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {v1, v2}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter$Companion;->configure(Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;)Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingAdapter;
|
|
|
|
|
|
|
|
iput-object v1, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->adapter:Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingAdapter;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getRecyclerView()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1, p1}, Landroidx/recyclerview/widget/RecyclerView;->setItemAnimator(Landroidx/recyclerview/widget/RecyclerView$ItemAnimator;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->getRecyclerView()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/recyclerview/widget/RecyclerView;->setHasFixedSize(Z)V
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final onViewBoundOrOnResume()V
|
2019-08-20 03:53:10 +00:00
|
|
|
.locals 14
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onViewBoundOrOnResume()V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->requireActivity()Landroidx/fragment/app/FragmentActivity;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {v0}, Landroidx/lifecycle/ViewModelProviders;->of(Landroidx/fragment/app/FragmentActivity;)Landroidx/lifecycle/ViewModelProvider;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-class v1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/lifecycle/ViewModelProvider;->get(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "ViewModelProviders.of(re\u2026ingViewModel::class.java)"
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast v0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel;
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->viewModel:Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel;
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->viewModel:Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel;
|
|
|
|
|
|
|
|
const-string v1, "viewModel"
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-08-17 08:22:04 +00:00
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/k;->dT(Ljava/lang/String;)V
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel;->getViewState()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-08-22 18:54:10 +00:00
|
|
|
invoke-virtual {v0}, Lrx/Observable;->Kb()Lrx/Observable;
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
const-string v2, "viewModel\n .getVi\u2026 .distinctUntilChanged()"
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-object v2, p0
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
check-cast v2, Lcom/discord/app/AppComponent;
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
const/4 v3, 0x2
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
const/4 v4, 0x0
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-static {v0, v2, v4, v3, v4}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui$default(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;ILjava/lang/Object;)Lrx/Observable;
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v5
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-result-object v6
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
const/4 v10, 0x0
|
|
|
|
|
2019-08-05 18:07:42 +00:00
|
|
|
new-instance v0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$onViewBoundOrOnResume$1;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$onViewBoundOrOnResume$1;-><init>(Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;)V
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
move-object v11, v0
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
check-cast v11, Lkotlin/jvm/functions/Function1;
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
const/16 v12, 0x1e
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
const/4 v13, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v5 .. v13}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting;->viewModel:Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel;
|
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/k;->dT(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$onViewBoundOrOnResume$2;->INSTANCE:Lcom/discord/widgets/settings/nitro/WidgetSettingsGifting$onViewBoundOrOnResume$2;
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/jvm/functions/Function1;
|
2019-08-05 18:07:42 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/widgets/settings/nitro/WidgetSettingsGiftingViewModel;->setOnGiftCodeResolved(Lkotlin/jvm/functions/Function1;)V
|
2019-08-05 18:07:42 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|