1145 lines
37 KiB
Smali
1145 lines
37 KiB
Smali
.class public final Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;
|
|
.super Lcom/discord/app/AppFragment;
|
|
.source "WidgetServerRemoveBoostConfirmation.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
.field public static final Companion:Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation$Companion;
|
|
|
|
.field private static final INTENT_EXTRA_GUILD_ID:Ljava/lang/String; = "GUILD_ID"
|
|
|
|
.field private static final INTENT_EXTRA_SUBSCRIPTION_ID:Ljava/lang/String; = "SUBSCRIPTION_ID"
|
|
|
|
|
|
# instance fields
|
|
.field private final avatar$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field private final cancel$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field private final dimmer$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field private final error$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field private guildId:J
|
|
|
|
.field private final level$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field private final name$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field private final select$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field private subscriptionId:J
|
|
|
|
.field private viewModel:Lcom/discord/widgets/servers/boosting/BoostInProgressViewModel;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 5
|
|
|
|
const/4 v0, 0x7
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
const-class v2, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "avatar"
|
|
|
|
const-string v4, "getAvatar()Lcom/facebook/drawee/view/SimpleDraweeView;"
|
|
|
|
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/servers/boosting/WidgetServerRemoveBoostConfirmation;
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "name"
|
|
|
|
const-string v4, "getName()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/4 v2, 0x1
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
const-class v2, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "level"
|
|
|
|
const-string v4, "getLevel()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/4 v2, 0x2
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
const-class v2, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "select"
|
|
|
|
const-string v4, "getSelect()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, 0x3
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
const-class v2, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "cancel"
|
|
|
|
const-string v4, "getCancel()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, 0x4
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
const-class v2, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "error"
|
|
|
|
const-string v4, "getError()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
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
|
|
|
const-class v2, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "dimmer"
|
|
|
|
const-string v4, "getDimmer()Lcom/discord/utilities/dimmer/DimmerView;"
|
|
|
|
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
|
|
|
|
sput-object v0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation$Companion;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->Companion:Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation$Companion;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 2
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
|
|
|
const v0, 0x7f0a00ea
|
|
|
|
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/servers/boosting/WidgetServerRemoveBoostConfirmation;->avatar$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a00ee
|
|
|
|
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/servers/boosting/WidgetServerRemoveBoostConfirmation;->name$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a00ef
|
|
|
|
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/servers/boosting/WidgetServerRemoveBoostConfirmation;->level$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a00f0
|
|
|
|
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/servers/boosting/WidgetServerRemoveBoostConfirmation;->select$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a00ec
|
|
|
|
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/servers/boosting/WidgetServerRemoveBoostConfirmation;->cancel$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a00ed
|
|
|
|
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/servers/boosting/WidgetServerRemoveBoostConfirmation;->error$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a026f
|
|
|
|
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/servers/boosting/WidgetServerRemoveBoostConfirmation;->dimmer$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const-wide/16 v0, -0x1
|
|
|
|
iput-wide v0, p0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->guildId:J
|
|
|
|
iput-wide v0, p0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->subscriptionId:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$configureUI(Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;Lcom/discord/widgets/servers/boosting/BoostInProgressViewModel$State;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->configureUI(Lcom/discord/widgets/servers/boosting/BoostInProgressViewModel$State;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$getGuildId$p(Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;)J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->guildId:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public static final synthetic access$getSubscriptionId$p(Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;)J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->subscriptionId:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public static final synthetic access$getViewModel$p(Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;)Lcom/discord/widgets/servers/boosting/BoostInProgressViewModel;
|
|
.locals 1
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->viewModel:Lcom/discord/widgets/servers/boosting/BoostInProgressViewModel;
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const-string v0, "viewModel"
|
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/k;->dR(Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$setGuildId$p(Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;J)V
|
|
.locals 0
|
|
|
|
iput-wide p1, p0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->guildId:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$setSubscriptionId$p(Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;J)V
|
|
.locals 0
|
|
|
|
iput-wide p1, p0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->subscriptionId:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$setViewModel$p(Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;Lcom/discord/widgets/servers/boosting/BoostInProgressViewModel;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->viewModel:Lcom/discord/widgets/servers/boosting/BoostInProgressViewModel;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final configureGuildCard(Lcom/discord/models/domain/ModelGuild;)V
|
|
.locals 17
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getAvatar()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v1
|
|
|
|
move-object v2, v1
|
|
|
|
check-cast v2, Landroid/widget/ImageView;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v3, 0x6
|
|
|
|
move-object/from16 v10, p1
|
|
|
|
invoke-static {v10, v9, v1, v3, v9}, Lcom/discord/utilities/icon/IconUtils;->getForGuild$default(Lcom/discord/models/domain/ModelGuild;Ljava/lang/String;ZILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/16 v7, 0x1c
|
|
|
|
const/4 v8, 0x0
|
|
|
|
invoke-static/range {v2 .. v8}, Lcom/discord/utilities/icon/IconUtils;->setIcon$default(Landroid/widget/ImageView;Ljava/lang/String;ILkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;ILjava/lang/Object;)V
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getName()Landroid/widget/TextView;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelGuild;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/models/domain/ModelGuild;->getPremiumTier()I
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
const/4 v3, 0x1
|
|
|
|
const-string v4, "requireContext()"
|
|
|
|
const/4 v5, 0x2
|
|
|
|
if-eq v2, v3, :cond_2
|
|
|
|
if-eq v2, v5, :cond_1
|
|
|
|
const/4 v3, 0x3
|
|
|
|
if-eq v2, v3, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getLevel()Landroid/widget/TextView;
|
|
|
|
move-result-object v2
|
|
|
|
const v3, 0x7f120ddd
|
|
|
|
invoke-virtual {v0, v3}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getLevel()Landroid/widget/TextView;
|
|
|
|
move-result-object v10
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->requireContext()Landroid/content/Context;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2, v4}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const v3, 0x7f040150
|
|
|
|
invoke-static {v2, v3, v1, v5, v9}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/content/Context;IIILjava/lang/Object;)I
|
|
|
|
move-result v11
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
const/16 v15, 0xe
|
|
|
|
const/16 v16, 0x0
|
|
|
|
invoke-static/range {v10 .. v16}, Lcom/discord/utilities/drawable/DrawableCompat;->setCompoundDrawablesCompat$default(Landroid/widget/TextView;IIIIILjava/lang/Object;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
:cond_1
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getLevel()Landroid/widget/TextView;
|
|
|
|
move-result-object v2
|
|
|
|
const v3, 0x7f120ddc
|
|
|
|
invoke-virtual {v0, v3}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getLevel()Landroid/widget/TextView;
|
|
|
|
move-result-object v10
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->requireContext()Landroid/content/Context;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2, v4}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const v3, 0x7f04014f
|
|
|
|
invoke-static {v2, v3, v1, v5, v9}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/content/Context;IIILjava/lang/Object;)I
|
|
|
|
move-result v11
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
const/16 v15, 0xe
|
|
|
|
const/16 v16, 0x0
|
|
|
|
invoke-static/range {v10 .. v16}, Lcom/discord/utilities/drawable/DrawableCompat;->setCompoundDrawablesCompat$default(Landroid/widget/TextView;IIIIILjava/lang/Object;)V
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getLevel()Landroid/widget/TextView;
|
|
|
|
move-result-object v2
|
|
|
|
const v3, 0x7f120ddb
|
|
|
|
invoke-virtual {v0, v3}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getLevel()Landroid/widget/TextView;
|
|
|
|
move-result-object v10
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->requireContext()Landroid/content/Context;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2, v4}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const v3, 0x7f04014e
|
|
|
|
invoke-static {v2, v3, v1, v5, v9}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/content/Context;IIILjava/lang/Object;)I
|
|
|
|
move-result v11
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
const/16 v15, 0xe
|
|
|
|
const/16 v16, 0x0
|
|
|
|
invoke-static/range {v10 .. v16}, Lcom/discord/utilities/drawable/DrawableCompat;->setCompoundDrawablesCompat$default(Landroid/widget/TextView;IIIIILjava/lang/Object;)V
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getLevel()Landroid/widget/TextView;
|
|
|
|
move-result-object v1
|
|
|
|
const v2, 0x7f120dab
|
|
|
|
invoke-virtual {v0, v2}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getLevel()Landroid/widget/TextView;
|
|
|
|
move-result-object v3
|
|
|
|
const v4, 0x7f080290
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/16 v8, 0xe
|
|
|
|
const/4 v9, 0x0
|
|
|
|
invoke-static/range {v3 .. v9}, Lcom/discord/utilities/drawable/DrawableCompat;->setCompoundDrawablesCompat$default(Landroid/widget/TextView;IIIIILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final configureToolbar(Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
const v0, 0x7f120db4
|
|
|
|
invoke-virtual {p0, v0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->setActionBarTitle(I)Lkotlin/Unit;
|
|
|
|
check-cast p1, Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->setActionBarSubtitle(Ljava/lang/CharSequence;)Lkotlin/Unit;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final configureUI(Lcom/discord/widgets/servers/boosting/BoostInProgressViewModel$State;)V
|
|
.locals 5
|
|
|
|
instance-of v0, p1, Lcom/discord/widgets/servers/boosting/BoostInProgressViewModel$State$Uninitialized;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
if-eqz p1, :cond_6
|
|
|
|
check-cast p1, Lcom/discord/widgets/servers/boosting/BoostInProgressViewModel$State$Loaded;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/servers/boosting/BoostInProgressViewModel$State$Loaded;->getGuild()Lcom/discord/models/domain/ModelGuild;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->requireActivity()Landroidx/fragment/app/FragmentActivity;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroidx/fragment/app/FragmentActivity;->finish()V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
invoke-virtual {p1}, Lcom/discord/widgets/servers/boosting/BoostInProgressViewModel$State$Loaded;->getGuild()Lcom/discord/models/domain/ModelGuild;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelGuild;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "state.guild.name"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0, v0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->configureToolbar(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/servers/boosting/BoostInProgressViewModel$State$Loaded;->getGuild()Lcom/discord/models/domain/ModelGuild;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->configureGuildCard(Lcom/discord/models/domain/ModelGuild;)V
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/servers/boosting/BoostInProgressViewModel$State$Loaded;->getBoostState()Lcom/discord/widgets/servers/boosting/BoostInProgressViewModel$BoostState;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation$WhenMappings;->$EnumSwitchMapping$0:[I
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/servers/boosting/BoostInProgressViewModel$BoostState;->ordinal()I
|
|
|
|
move-result p1
|
|
|
|
aget p1, v0, p1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x4
|
|
|
|
const/4 v3, 0x2
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-eq p1, v0, :cond_5
|
|
|
|
if-eq p1, v3, :cond_4
|
|
|
|
const/4 v0, 0x3
|
|
|
|
if-eq p1, v0, :cond_3
|
|
|
|
if-eq p1, v2, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
invoke-virtual {p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->requireActivity()Landroidx/fragment/app/FragmentActivity;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroidx/fragment/app/FragmentActivity;->onBackPressed()V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
:cond_3
|
|
invoke-direct {p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getDimmer()Lcom/discord/utilities/dimmer/DimmerView;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1, v4, v4, v3, v1}, Lcom/discord/utilities/dimmer/DimmerView;->setDimmed$default(Lcom/discord/utilities/dimmer/DimmerView;ZZILjava/lang/Object;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getError()Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, v4}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
return-void
|
|
|
|
:cond_4
|
|
invoke-direct {p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getDimmer()Lcom/discord/utilities/dimmer/DimmerView;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1, v0, v4, v3, v1}, Lcom/discord/utilities/dimmer/DimmerView;->setDimmed$default(Lcom/discord/utilities/dimmer/DimmerView;ZZILjava/lang/Object;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getError()Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
return-void
|
|
|
|
:cond_5
|
|
invoke-direct {p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getDimmer()Lcom/discord/utilities/dimmer/DimmerView;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1, v4, v4, v3, v1}, Lcom/discord/utilities/dimmer/DimmerView;->setDimmed$default(Lcom/discord/utilities/dimmer/DimmerView;ZZILjava/lang/Object;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getError()Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
return-void
|
|
|
|
:cond_6
|
|
new-instance p1, Lkotlin/r;
|
|
|
|
const-string v0, "null cannot be cast to non-null type com.discord.widgets.servers.boosting.BoostInProgressViewModel.State.Loaded"
|
|
|
|
invoke-direct {p1, v0}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public static final create(Landroid/content/Context;JJ)V
|
|
.locals 6
|
|
|
|
sget-object v0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->Companion:Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation$Companion;
|
|
|
|
move-object v1, p0
|
|
|
|
move-wide v2, p1
|
|
|
|
move-wide v4, p3
|
|
|
|
invoke-virtual/range {v0 .. v5}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation$Companion;->create(Landroid/content/Context;JJ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final getAvatar()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->avatar$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->$$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/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getCancel()Landroid/view/View;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->cancel$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->$$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/view/View;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getDimmer()Lcom/discord/utilities/dimmer/DimmerView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->dimmer$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->$$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/utilities/dimmer/DimmerView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getError()Landroid/view/View;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->error$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->$$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 getLevel()Landroid/widget/TextView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->level$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->$$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, Landroid/widget/TextView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getName()Landroid/widget/TextView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->name$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->$$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/widget/TextView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getSelect()Landroid/view/View;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->select$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->$$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, Landroid/view/View;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final getContentViewResId()I
|
|
.locals 1
|
|
|
|
const v0, 0x7f0d016a
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final onActivityCreated(Landroid/os/Bundle;)V
|
|
.locals 2
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onActivityCreated(Landroid/os/Bundle;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x3
|
|
|
|
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;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onCreate(Landroid/os/Bundle;)V
|
|
.locals 4
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onCreate(Landroid/os/Bundle;)V
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getMostRecentIntent()Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
const-wide/16 v0, -0x1
|
|
|
|
const-string v2, "GUILD_ID"
|
|
|
|
invoke-virtual {p1, v2, v0, v1}, Landroid/content/Intent;->getLongExtra(Ljava/lang/String;J)J
|
|
|
|
move-result-wide v2
|
|
|
|
iput-wide v2, p0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->guildId:J
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getMostRecentIntent()Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v2, "SUBSCRIPTION_ID"
|
|
|
|
invoke-virtual {p1, v2, v0, v1}, Landroid/content/Intent;->getLongExtra(Ljava/lang/String;J)J
|
|
|
|
move-result-wide v0
|
|
|
|
iput-wide v0, p0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->subscriptionId:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onResume()V
|
|
.locals 10
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onResume()V
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->guildId:J
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
if-nez v4, :cond_1
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getAppActivity()Lcom/discord/app/AppActivity;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0}, Lcom/discord/app/AppActivity;->finish()V
|
|
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->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/servers/boosting/BoostInProgressViewModel;
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/lifecycle/ViewModelProvider;->get(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "ViewModelProviders.of(re\u2026essViewModel::class.java)"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast v0, Lcom/discord/widgets/servers/boosting/BoostInProgressViewModel;
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->viewModel:Lcom/discord/widgets/servers/boosting/BoostInProgressViewModel;
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->viewModel:Lcom/discord/widgets/servers/boosting/BoostInProgressViewModel;
|
|
|
|
const-string v1, "viewModel"
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/k;->dR(Ljava/lang/String;)V
|
|
|
|
:cond_2
|
|
iget-wide v2, p0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->guildId:J
|
|
|
|
invoke-virtual {v0, v2, v3}, Lcom/discord/widgets/servers/boosting/BoostInProgressViewModel;->setGuildId(J)V
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->viewModel:Lcom/discord/widgets/servers/boosting/BoostInProgressViewModel;
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/k;->dR(Ljava/lang/String;)V
|
|
|
|
:cond_3
|
|
invoke-virtual {v0}, Lcom/discord/widgets/servers/boosting/BoostInProgressViewModel;->getState()Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
move-object v1, p0
|
|
|
|
check-cast v1, Lcom/discord/app/AppComponent;
|
|
|
|
const/4 v2, 0x2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-static {v0, v1, v3, v2, v3}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui$default(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;ILjava/lang/Object;)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lrx/Observable;->JT()Lrx/Observable;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v0, "viewModel\n .getSt\u2026 .distinctUntilChanged()"
|
|
|
|
invoke-static {v1, v0}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
new-instance v0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation$onResume$1;
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation$onResume$1;-><init>(Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;)V
|
|
|
|
move-object v7, v0
|
|
|
|
check-cast v7, Lkotlin/jvm/functions/Function1;
|
|
|
|
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
|
|
.end method
|
|
|
|
.method public final onViewBound(Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
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
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getSelect()Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation$onViewBound$1;
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation$onViewBound$1;-><init>(Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;)V
|
|
|
|
check-cast v0, Landroid/view/View$OnClickListener;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;->getCancel()Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation$onViewBound$2;
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation$onViewBound$2;-><init>(Lcom/discord/widgets/servers/boosting/WidgetServerRemoveBoostConfirmation;)V
|
|
|
|
check-cast v0, Landroid/view/View$OnClickListener;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-void
|
|
.end method
|