2020-02-12 20:59:48 +00:00
|
|
|
.class public final Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;
|
|
|
|
.super Lcom/discord/app/AppFragment;
|
|
|
|
.source "WidgetSettingsPremiumSwitchPlan.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$Companion;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
.field public static final Companion:Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$Companion;
|
|
|
|
|
|
|
|
.field public static final ERROR_VIEW_INDEX:I = 0x1
|
|
|
|
|
|
|
|
.field public static final LOADING_VIEW_INDEX:I = 0x0
|
|
|
|
|
|
|
|
.field public static final SELECT_INTERVAL_VIEW_INDEX:I = 0x3
|
|
|
|
|
|
|
|
.field public static final SELECT_TIER_VIEW_INDEX:I = 0x2
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final cancelBtn$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final flipper$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final intervalHeader$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final intervalInfo$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final intervalLogo$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final intervalRadioGroup$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final intervalRadioMonth$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final intervalRadioYear$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public pagerAdapter:Lcom/discord/widgets/settings/premium/PremiumSwitchPlanPagerAdapter;
|
|
|
|
|
|
|
|
.field public final retryButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final selectBtn$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public viewModel:Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel;
|
|
|
|
|
|
|
|
.field public final viewPagerTabs$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final viewpager$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
const/16 v0, 0xc
|
|
|
|
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v1, Lw/u/b/u;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v2}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "flipper"
|
|
|
|
|
|
|
|
const-string v4, "getFlipper()Lcom/discord/app/AppViewFlipper;"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v1, v2, v3, v4}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v2, Lw/u/b/w;->a:Lw/u/b/x;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v2, v1}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v2, Lw/u/b/u;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
const-class v3, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v4, "retryButton"
|
|
|
|
|
|
|
|
const-string v5, "getRetryButton()Landroid/view/View;"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v2, Lw/u/b/u;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
const-class v3, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v4, "viewpager"
|
|
|
|
|
|
|
|
const-string v5, "getViewpager()Landroidx/viewpager/widget/ViewPager;"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
|
|
|
|
const/4 v1, 0x3
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v2, Lw/u/b/u;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
const-class v3, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v4, "viewPagerTabs"
|
|
|
|
|
|
|
|
const-string v5, "getViewPagerTabs()Lcom/google/android/material/tabs/TabLayout;"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
|
|
|
|
const/4 v1, 0x4
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v2, Lw/u/b/u;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
const-class v3, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v4, "selectBtn"
|
|
|
|
|
|
|
|
const-string v5, "getSelectBtn()Landroid/widget/Button;"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
|
|
|
|
const/4 v1, 0x5
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v2, Lw/u/b/u;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
const-class v3, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v4, "cancelBtn"
|
|
|
|
|
|
|
|
const-string v5, "getCancelBtn()Landroid/widget/TextView;"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
|
|
|
|
const/4 v1, 0x6
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v2, Lw/u/b/u;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
const-class v3, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v4, "intervalLogo"
|
|
|
|
|
|
|
|
const-string v5, "getIntervalLogo()Landroid/widget/ImageView;"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
|
|
|
|
const/4 v1, 0x7
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v2, Lw/u/b/u;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
const-class v3, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v4, "intervalHeader"
|
|
|
|
|
|
|
|
const-string v5, "getIntervalHeader()Landroid/widget/TextView;"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
|
|
|
|
const/16 v1, 0x8
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v2, Lw/u/b/u;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
const-class v3, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v4, "intervalInfo"
|
|
|
|
|
|
|
|
const-string v5, "getIntervalInfo()Landroid/widget/TextView;"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
|
|
|
|
const/16 v1, 0x9
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v2, Lw/u/b/u;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
const-class v3, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v4, "intervalRadioGroup"
|
|
|
|
|
|
|
|
const-string v5, "getIntervalRadioGroup()Landroid/widget/RadioGroup;"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
|
|
|
|
const/16 v1, 0xa
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v2, Lw/u/b/u;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
const-class v3, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v4, "intervalRadioYear"
|
|
|
|
|
|
|
|
const-string v5, "getIntervalRadioYear()Landroid/widget/RadioButton;"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
|
|
|
|
const/16 v1, 0xb
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v2, Lw/u/b/u;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
const-class v3, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v4, "intervalRadioMonth"
|
|
|
|
|
|
|
|
const-string v5, "getIntervalRadioMonth()Landroid/widget/RadioButton;"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$Companion;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->Companion:Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$Companion;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f0a0604
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->flipper$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f0a0613
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->retryButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f0a0610
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->viewpager$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f0a0612
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->viewPagerTabs$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f0a0614
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->selectBtn$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f0a0603
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->cancelBtn$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f0a0607
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->intervalLogo$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f0a0605
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->intervalHeader$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f0a0606
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->intervalInfo$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f0a0608
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->intervalRadioGroup$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f0a060a
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->intervalRadioYear$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f0a0609
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->intervalRadioMonth$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$configureUI(Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->configureUI(Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getIntervalRadioYear$p(Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;)Landroid/widget/RadioButton;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalRadioYear()Landroid/widget/RadioButton;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getViewModel$p(Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;)Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->viewModel:Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel;
|
|
|
|
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p0, "viewModel"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p0}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$handleEvent(Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$Event;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->handleEvent(Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$Event;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$setViewModel$p(Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->viewModel:Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final configureIntervalUI(Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;Lcom/discord/models/domain/ModelSubscription;)V
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;->TIER_2:Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;
|
|
|
|
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f120fdc
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f120fdb
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalRadioGroup()Landroid/widget/RadioGroup;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/RadioGroup;->setOnCheckedChangeListener(Landroid/widget/RadioGroup$OnCheckedChangeListener;)V
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$WhenMappings;->$EnumSwitchMapping$0:[I
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
aget p2, v1, p2
|
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-eq p2, v2, :cond_2
|
|
|
|
|
|
|
|
if-eq p2, v1, :cond_1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalRadioGroup()Landroid/widget/RadioGroup;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalRadioYear()Landroid/widget/RadioButton;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Landroid/widget/RadioButton;->getId()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-virtual {p2, v3}, Landroid/widget/RadioGroup;->check(I)V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalRadioGroup()Landroid/widget/RadioGroup;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalRadioMonth()Landroid/widget/RadioButton;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Landroid/widget/RadioButton;->getId()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-virtual {p2, v3}, Landroid/widget/RadioGroup;->check(I)V
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalRadioGroup()Landroid/widget/RadioGroup;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
new-instance v3, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$configureIntervalUI$1;
|
|
|
|
|
|
|
|
invoke-direct {v3, p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$configureIntervalUI$1;-><init>(Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;)V
|
|
|
|
|
|
|
|
invoke-virtual {p2, v3}, Landroid/widget/RadioGroup;->setOnCheckedChangeListener(Landroid/widget/RadioGroup$OnCheckedChangeListener;)V
|
|
|
|
|
|
|
|
invoke-virtual {p3}, Lcom/discord/models/domain/ModelSubscription;->getPlanType()Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->getPremiumTier()Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
if-ne p1, p2, :cond_5
|
|
|
|
|
|
|
|
invoke-virtual {p3}, Lcom/discord/models/domain/ModelSubscription;->getPlanType()Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->getInterval()Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
sget-object v4, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$WhenMappings;->$EnumSwitchMapping$1:[I
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
aget p2, v4, p2
|
|
|
|
|
|
|
|
if-eq p2, v2, :cond_4
|
|
|
|
|
|
|
|
if-eq p2, v1, :cond_3
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalRadioMonth()Landroid/widget/RadioButton;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-virtual {p2, v3}, Landroid/widget/RadioButton;->setEnabled(Z)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalRadioYear()Landroid/widget/RadioButton;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-virtual {p2, v2}, Landroid/widget/RadioButton;->setEnabled(Z)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalRadioGroup()Landroid/widget/RadioGroup;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalRadioYear()Landroid/widget/RadioButton;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroid/widget/RadioButton;->getId()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-virtual {p2, v4}, Landroid/widget/RadioGroup;->check(I)V
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalRadioMonth()Landroid/widget/RadioButton;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-virtual {p2, v2}, Landroid/widget/RadioButton;->setEnabled(Z)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalRadioYear()Landroid/widget/RadioButton;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-virtual {p2, v3}, Landroid/widget/RadioButton;->setEnabled(Z)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalRadioGroup()Landroid/widget/RadioGroup;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalRadioMonth()Landroid/widget/RadioButton;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroid/widget/RadioButton;->getId()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-virtual {p2, v4}, Landroid/widget/RadioGroup;->check(I)V
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalRadioMonth()Landroid/widget/RadioButton;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-virtual {p2, v2}, Landroid/widget/RadioButton;->setEnabled(Z)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalRadioYear()Landroid/widget/RadioButton;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-virtual {p2, v2}, Landroid/widget/RadioButton;->setEnabled(Z)V
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalRadioYear()Landroid/widget/RadioButton;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
sget-object v4, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;->YEARLY:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
invoke-direct {p0, p3, v4, p1}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getPlanPriceString(Lcom/discord/models/domain/ModelSubscription;Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {p2, v4}, Landroid/widget/RadioButton;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalRadioMonth()Landroid/widget/RadioButton;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
sget-object v4, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;->MONTHLY:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
invoke-direct {p0, p3, v4, p1}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getPlanPriceString(Lcom/discord/models/domain/ModelSubscription;Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {p2, v4}, Landroid/widget/RadioButton;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalHeader()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v4, 0x7f120301
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
new-array v5, v2, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
aput-object v0, v5, v3
|
|
|
|
|
|
|
|
invoke-virtual {p0, v4, v5}, Landroidx/fragment/app/Fragment;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalInfo()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p3}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalInfoText(Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;Lcom/discord/models/domain/ModelSubscription;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
invoke-virtual {p2, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
sget-object p2, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$WhenMappings;->$EnumSwitchMapping$2:[I
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
aget p1, p2, p1
|
|
|
|
|
|
|
|
if-eq p1, v2, :cond_7
|
|
|
|
|
|
|
|
if-eq p1, v1, :cond_6
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalLogo()Landroid/widget/ImageView;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const p2, 0x7f0804dc
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalLogo()Landroid/widget/ImageView;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const/high16 p2, -0x40800000 # -1.0f
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setScaleX(F)V
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalLogo()Landroid/widget/ImageView;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const p2, 0x7f0804de
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getIntervalLogo()Landroid/widget/ImageView;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const/high16 p2, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setScaleX(F)V
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final configureLoadedUI(Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState$Loaded;)V
|
|
|
|
.locals 5
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState$Loaded;->getHasNoSelection()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v2, 0x7f1202f8
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getFlipper()Lcom/discord/app/AppViewFlipper;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/4 v4, 0x2
|
|
|
|
|
|
|
|
invoke-virtual {v0, v4}, Lcom/discord/app/AppViewFlipper;->setDisplayedChild(I)V
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState$Loaded;->getCurrentViewPagerPage()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const p1, 0x7f120fdc
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-03-03 02:12:30 +00:00
|
|
|
const p1, 0x7f120fdb
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string v0, "getString(\n if \u2026ier_1\n }\n )"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getSelectBtn()Landroid/widget/Button;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-array v3, v3, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
aput-object p1, v3, v1
|
|
|
|
|
|
|
|
invoke-virtual {p0, v2, v3}, Landroidx/fragment/app/Fragment;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getCancelBtn()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f120ccf
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
goto/16 :goto_2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState$Loaded;->getSelectedPremiumTier()Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getFlipper()Lcom/discord/app/AppViewFlipper;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/4 v4, 0x3
|
|
|
|
|
|
|
|
invoke-virtual {v0, v4}, Lcom/discord/app/AppViewFlipper;->setDisplayedChild(I)V
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState$Loaded;->getCurrentViewPagerPage()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState$Loaded;->getCurrentIntervalSelected()Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
sget-object v4, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;->YEARLY:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
if-ne v0, v4, :cond_3
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f120fac
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState$Loaded;->getCurrentViewPagerPage()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState$Loaded;->getCurrentIntervalSelected()Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
sget-object v4, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;->MONTHLY:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
if-ne v0, v4, :cond_4
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f120fa9
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState$Loaded;->getCurrentViewPagerPage()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-ne v0, v3, :cond_5
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState$Loaded;->getCurrentIntervalSelected()Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
sget-object v4, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;->YEARLY:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
if-ne v0, v4, :cond_5
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f120fab
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState$Loaded;->getCurrentViewPagerPage()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-ne v0, v3, :cond_6
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState$Loaded;->getCurrentIntervalSelected()Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
sget-object v4, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;->MONTHLY:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
if-ne v0, v4, :cond_6
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f120fa8
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
const-string v0, ""
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
const-string v4, "when {\n state.cur\u2026 else -> \"\"\n }"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v0, v4}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getSelectBtn()Landroid/widget/Button;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
new-array v3, v3, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
aput-object v0, v3, v1
|
|
|
|
|
|
|
|
invoke-virtual {p0, v2, v3}, Landroidx/fragment/app/Fragment;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v4, v0}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getCancelBtn()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v1, 0x7f120248
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, v1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState$Loaded;->getSelectedPremiumTier()Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState$Loaded;->getCurrentIntervalSelected()Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState$Loaded;->getCurrentPremiumSubscription()Lcom/discord/models/domain/ModelSubscription;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, v1, p1}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->configureIntervalUI(Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;Lcom/discord/models/domain/ModelSubscription;)V
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final configureUI(Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
instance-of v0, p1, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState$Loading;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getFlipper()Lcom/discord/app/AppViewFlipper;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/app/AppViewFlipper;->setDisplayedChild(I)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
instance-of v0, p1, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState$Error;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getFlipper()Lcom/discord/app/AppViewFlipper;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/app/AppViewFlipper;->setDisplayedChild(I)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
instance-of v0, p1, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState$Loaded;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState$Loaded;
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->configureLoadedUI(Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$ViewState$Loaded;)V
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final create(Landroid/content/Context;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->Companion:Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$Companion;->create(Landroid/content/Context;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getCancelBtn()Landroid/widget/TextView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->cancelBtn$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->$$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/widget/TextView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getFlipper()Lcom/discord/app/AppViewFlipper;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->flipper$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->$$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, Lcom/discord/app/AppViewFlipper;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getIntervalHeader()Landroid/widget/TextView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->intervalHeader$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->$$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/TextView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getIntervalInfo()Landroid/widget/TextView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->intervalInfo$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->$$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
|
|
|
|
|
|
|
|
.method private final getIntervalInfoText(Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;Lcom/discord/models/domain/ModelSubscription;)Ljava/lang/String;
|
|
|
|
.locals 8
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelSubscription;->getPlanType()Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->getPremiumTier()Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
sget-object v0, Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;->NONE:Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const v2, 0x7f10001a
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
new-array v4, v3, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
const/4 v5, 0x2
|
|
|
|
|
|
|
|
invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
aput-object v6, v4, v7
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2, v5, v4}, Landroid/content/res/Resources;->getQuantityString(II[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v2, "resources.getQuantityStr\u2026PTIONS_WITH_PREMIUM\n )"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v1, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;->getTierInt()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;->getTierInt()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-le v2, v4, :cond_1
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const p1, 0x7f1202fe
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "getString(R.string.billi\u2026plan_upgrade_body_tier_2)"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1, p2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;->getTierInt()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;->getTierInt()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-ge p1, v2, :cond_2
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const p1, 0x7f1202f6
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "getString(R.string.billi\u2026an_downgrade_body_tier_1)"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1, p2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelSubscription;->getPlanType()Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->getInterval()Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
sget-object p2, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;->MONTHLY:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
if-ne p1, p2, :cond_4
|
|
|
|
|
|
|
|
sget-object p1, Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;->TIER_2:Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;
|
|
|
|
|
|
|
|
if-ne v0, p1, :cond_3
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const p1, 0x7f1202ff
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
new-array p2, v3, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
aput-object v1, p2, v7
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, p2}, Landroidx/fragment/app/Fragment;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "getString(R.string.billi\u2026ear, numPremiumGuildSubs)"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1, p2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
sget-object p1, Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;->TIER_1:Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;
|
|
|
|
|
|
|
|
if-ne v0, p1, :cond_4
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const p1, 0x7f1202fd
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "getString(R.string.billi\u2026upgrade_body_tier_1_year)"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1, p2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_4
|
2020-03-03 02:12:30 +00:00
|
|
|
const p1, 0x7f1202f5
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "getString(R.string.billi\u2026lan_downgrade_body_month)"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1, p2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getIntervalLogo()Landroid/widget/ImageView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->intervalLogo$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->$$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, Landroid/widget/ImageView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getIntervalRadioGroup()Landroid/widget/RadioGroup;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->intervalRadioGroup$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->$$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, Landroid/widget/RadioGroup;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getIntervalRadioMonth()Landroid/widget/RadioButton;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->intervalRadioMonth$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->$$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/RadioButton;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getIntervalRadioYear()Landroid/widget/RadioButton;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->intervalRadioYear$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->$$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/RadioButton;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getPlanPriceString(Lcom/discord/models/domain/ModelSubscription;Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;)Ljava/lang/String;
|
|
|
|
.locals 7
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
new-array v2, v1, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
const/4 v3, 0x2
|
|
|
|
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
aput-object v4, v2, v5
|
|
|
|
|
|
|
|
const v4, 0x7f100016
|
|
|
|
|
|
|
|
invoke-virtual {v0, v4, v3, v2}, Landroid/content/res/Resources;->getQuantityString(II[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v2, "resources.getQuantityStr\u2026S_WITH_PREMIUM_YEAR\n )"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v0, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelSubscription;->getPlanType()Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->getPremiumTier()Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
if-ne p3, v2, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelSubscription;->getPlanType()Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->getInterval()Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
if-ne p2, p1, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
sget-object v2, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;->YEARLY:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
const-string v4, ""
|
|
|
|
|
|
|
|
const-string v6, "requireContext()"
|
|
|
|
|
|
|
|
if-ne p2, v2, :cond_1
|
|
|
|
|
|
|
|
sget-object v2, Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;->TIER_1:Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;
|
|
|
|
|
|
|
|
if-ne p3, v2, :cond_1
|
|
|
|
|
|
|
|
sget-object p3, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->PREMIUM_YEAR_TIER_1:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;
|
|
|
|
|
|
|
|
invoke-virtual {p3}, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->getPrice()I
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v2, v6}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-static {p3, v2}, Lcom/discord/utilities/billing/PremiumUtilsKt;->getFormattedPrice(ILandroid/content/Context;)Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
sget-object v2, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;->MONTHLY:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
if-ne p2, v2, :cond_2
|
|
|
|
|
|
|
|
sget-object v2, Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;->TIER_1:Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;
|
|
|
|
|
|
|
|
if-ne p3, v2, :cond_2
|
|
|
|
|
|
|
|
sget-object p3, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->PREMIUM_MONTH_TIER_1:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;
|
|
|
|
|
|
|
|
invoke-virtual {p3}, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->getPrice()I
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v2, v6}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-static {p3, v2}, Lcom/discord/utilities/billing/PremiumUtilsKt;->getFormattedPrice(ILandroid/content/Context;)Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
sget-object v2, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;->YEARLY:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
if-ne p2, v2, :cond_3
|
|
|
|
|
|
|
|
sget-object v2, Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;->TIER_2:Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;
|
|
|
|
|
|
|
|
if-ne p3, v2, :cond_3
|
|
|
|
|
|
|
|
sget-object p3, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->PREMIUM_YEAR_TIER_2:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;
|
|
|
|
|
|
|
|
invoke-virtual {p3}, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->getPrice()I
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v2, v6}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-static {p3, v2}, Lcom/discord/utilities/billing/PremiumUtilsKt;->getFormattedPrice(ILandroid/content/Context;)Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
sget-object v2, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;->MONTHLY:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
if-ne p2, v2, :cond_4
|
|
|
|
|
|
|
|
sget-object v2, Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;->TIER_2:Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;
|
|
|
|
|
|
|
|
if-ne p3, v2, :cond_4
|
|
|
|
|
|
|
|
sget-object p3, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->PREMIUM_MONTH_TIER_2:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;
|
|
|
|
|
|
|
|
invoke-virtual {p3}, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->getPrice()I
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v2, v6}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-static {p3, v2}, Lcom/discord/utilities/billing/PremiumUtilsKt;->getFormattedPrice(ILandroid/content/Context;)Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
move-object p3, v4
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
const-string v2, "getString(R.string.billi\u2026rrent_plan_mobile, price)"
|
|
|
|
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
|
|
|
|
sget-object v6, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;->YEARLY:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
if-ne p2, v6, :cond_5
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const p1, 0x7f1202c7
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
new-array p2, v1, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
aput-object p3, p2, v5
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, p2}, Landroidx/fragment/app/Fragment;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v4, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
if-nez p1, :cond_6
|
|
|
|
|
|
|
|
sget-object v6, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;->YEARLY:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
if-ne p2, v6, :cond_6
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const p1, 0x7f1202ca
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
new-array p2, v3, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
aput-object p3, p2, v5
|
|
|
|
|
|
|
|
aput-object v0, p2, v1
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, p2}, Landroidx/fragment/app/Fragment;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
const-string p1, "getString(R.string.billi\u2026 price, freeMonthsString)"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v4, p1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
if-eqz p1, :cond_7
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;->MONTHLY:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
if-ne p2, v0, :cond_7
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const p1, 0x7f1202c1
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
new-array p2, v1, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
aput-object p3, p2, v5
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, p2}, Landroidx/fragment/app/Fragment;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v4, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
if-nez p1, :cond_8
|
|
|
|
|
|
|
|
sget-object p1, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;->MONTHLY:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionInterval;
|
|
|
|
|
|
|
|
if-ne p2, p1, :cond_8
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const p1, 0x7f1202be
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
new-array p2, v1, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
aput-object p3, p2, v5
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, p2}, Landroidx/fragment/app/Fragment;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
const-string p1, "getString(R.string.billing_price_per_month, price)"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v4, p1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
:cond_8
|
|
|
|
:goto_2
|
|
|
|
return-object v4
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getRetryButton()Landroid/view/View;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->retryButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->$$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, Landroid/view/View;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getSelectBtn()Landroid/widget/Button;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->selectBtn$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->$$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, Landroid/widget/Button;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getViewPagerTabs()Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->viewPagerTabs$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->$$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, Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getViewpager()Landroidx/viewpager/widget/ViewPager;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->viewpager$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->$$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/viewpager/widget/ViewPager;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final handleEvent(Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$Event;)V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$Event$Dismiss;->INSTANCE:Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$Event$Dismiss;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroidx/activity/ComponentActivity;->onBackPressed()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
instance-of v0, p1, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$Event$OpenWebFlow;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/utilities/premium/PremiumUtils;->INSTANCE:Lcom/discord/utilities/premium/PremiumUtils;
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$Event$OpenWebFlow;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$Event$OpenWebFlow;->getPlanId()J
|
|
|
|
|
|
|
|
move-result-wide v1
|
|
|
|
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {v0, p0, p1}, Lcom/discord/utilities/premium/PremiumUtils;->openWebSwitchPlans(Lcom/discord/app/AppFragment;Ljava/lang/Long;)V
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public getContentViewResId()I
|
|
|
|
.locals 1
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f0d023a
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onActivityCreated(Landroid/os/Bundle;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onActivityCreated(Landroid/os/Bundle;)V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireActivity()Landroidx/fragment/app/FragmentActivity;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string v0, "requireActivity()"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/app/Activity;->setRequestedOrientation(I)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getViewPagerTabs()Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getViewpager()Landroidx/viewpager/widget/ViewPager;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/google/android/material/tabs/TabLayout;->setupWithViewPager(Landroidx/viewpager/widget/ViewPager;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getViewpager()Landroidx/viewpager/widget/ViewPager;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->pagerAdapter:Lcom/discord/widgets/settings/premium/PremiumSwitchPlanPagerAdapter;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/viewpager/widget/ViewPager;->setAdapter(Landroidx/viewpager/widget/PagerAdapter;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getViewpager()Landroidx/viewpager/widget/ViewPager;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const/16 v0, 0x10
|
|
|
|
|
|
|
|
invoke-static {v0}, Lcom/discord/utilities/dimen/DimenUtils;->dpToPixels(I)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/viewpager/widget/ViewPager;->setPageMargin(I)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getViewpager()Landroidx/viewpager/widget/ViewPager;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$onActivityCreated$1;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$onActivityCreated$1;-><init>(Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;)V
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/viewpager/widget/ViewPager;->addOnPageChangeListener(Landroidx/viewpager/widget/ViewPager$OnPageChangeListener;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "pagerAdapter"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onViewBound(Landroid/view/View;)V
|
2020-02-20 19:33:18 +00:00
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x3
|
|
|
|
|
|
|
|
invoke-static {p0, p1, v0, v1, v0}, Lcom/discord/app/AppFragment;->setActionBarDisplayHomeAsUpEnabled$default(Lcom/discord/app/AppFragment;ZLjava/lang/Integer;ILjava/lang/Object;)Landroidx/appcompat/widget/Toolbar;
|
|
|
|
|
2020-02-12 20:59:48 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getRetryButton()Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$onViewBound$1;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$onViewBound$1;-><init>(Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;)V
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getSelectBtn()Landroid/widget/Button;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$onViewBound$2;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$onViewBound$2;-><init>(Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;)V
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->getCancelBtn()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$onViewBound$3;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$onViewBound$3;-><init>(Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;)V
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
|
|
|
|
new-instance p1, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanPagerAdapter;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanPagerAdapter;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->pagerAdapter:Lcom/discord/widgets/settings/premium/PremiumSwitchPlanPagerAdapter;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "view"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
throw v0
|
2020-02-12 20:59:48 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onViewBoundOrOnResume()V
|
|
|
|
.locals 12
|
|
|
|
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onViewBoundOrOnResume()V
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$Factory;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel$Factory;-><init>()V
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Landroidx/lifecycle/ViewModelProviders;->of(Landroidx/fragment/app/Fragment;Landroidx/lifecycle/ViewModelProvider$Factory;)Landroidx/lifecycle/ViewModelProvider;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-class v1, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/lifecycle/ViewModelProvider;->get(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "ViewModelProviders\n \u2026lanViewModel::class.java)"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
check-cast v0, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel;
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->viewModel:Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel;
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;->viewModel:Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const-string v2, "viewModel"
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
invoke-virtual {v0}, Le/a/b/c0;->observeViewState()Lrx/Observable;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {v0, p0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->bindToComponentLifecycle(Lrx/Observable;Lcom/discord/app/AppComponent;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lrx/Observable;->a()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v0, "viewModel\n .obser\u2026 .distinctUntilChanged()"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v3, v0}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
const-class v4, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
new-instance v9, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$onViewBoundOrOnResume$1;
|
|
|
|
|
|
|
|
invoke-direct {v9, p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$onViewBoundOrOnResume$1;-><init>(Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;)V
|
|
|
|
|
|
|
|
const/16 v10, 0x1e
|
|
|
|
|
|
|
|
const/4 v11, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v3 .. v11}, 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/premium/WidgetSettingsPremiumSwitchPlan;->viewModel:Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanViewModel;->observeEvents()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {v0, p0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->bindToComponentLifecycle(Lrx/Observable;Lcom/discord/app/AppComponent;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
new-instance v7, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$onViewBoundOrOnResume$2;
|
|
|
|
|
|
|
|
invoke-direct {v7, p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan$onViewBoundOrOnResume$2;-><init>(Lcom/discord/widgets/settings/premium/WidgetSettingsPremiumSwitchPlan;)V
|
|
|
|
|
|
|
|
const/16 v8, 0x1e
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v1 .. v9}, 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
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v2}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
throw v1
|
|
|
|
|
|
|
|
:cond_1
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v2}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
throw v1
|
|
|
|
.end method
|