687 lines
27 KiB
Smali
687 lines
27 KiB
Smali
.class public final Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;
|
|
.super Lcom/discord/app/AppFragment;
|
|
.source "WidgetServerSettingsCommunityOverview.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
.field public static final Companion:Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$Companion;
|
|
|
|
.field public static final INTENT_EXTRA_GUILD_ID:Ljava/lang/String; = "INTENT_EXTRA_GUILD_ID"
|
|
|
|
.field public static final REQUEST_CODE_LOCALE:I = 0xfa4
|
|
|
|
.field public static final REQUEST_CODE_RULES_CHANNEL:I = 0xfa2
|
|
|
|
.field public static final REQUEST_CODE_UPDATES_CHANNEL:I = 0xfa3
|
|
|
|
|
|
# instance fields
|
|
.field public final localeContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final rulesChannelContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final updatesChannelContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public viewModel:Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 5
|
|
|
|
const/4 v0, 0x3
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
const-class v1, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;
|
|
|
|
const-string v2, "rulesChannelContainer"
|
|
|
|
const-string v3, "getRulesChannelContainer()Lcom/discord/widgets/servers/communityguild/CommunityServerSettingSelectorView;"
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-static {v1, v2, v3, v4}, Lf/e/b/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lk0/n/c/r;
|
|
|
|
move-result-object v1
|
|
|
|
aput-object v1, v0, v4
|
|
|
|
const-class v1, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;
|
|
|
|
const-string v2, "updatesChannelContainer"
|
|
|
|
const-string v3, "getUpdatesChannelContainer()Lcom/discord/widgets/servers/communityguild/CommunityServerSettingSelectorView;"
|
|
|
|
invoke-static {v1, v2, v3, v4}, Lf/e/b/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lk0/n/c/r;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
const-class v1, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;
|
|
|
|
const-string v2, "localeContainer"
|
|
|
|
const-string v3, "getLocaleContainer()Lcom/discord/widgets/servers/communityguild/CommunityServerSettingSelectorView;"
|
|
|
|
invoke-static {v1, v2, v3, v4}, Lf/e/b/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lk0/n/c/r;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x2
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
sput-object v0, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v0, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$Companion;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->Companion:Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$Companion;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
|
|
|
const v0, 0x7f0a083d
|
|
|
|
invoke-static {p0, v0}, Lk0/j/a;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->rulesChannelContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a0841
|
|
|
|
invoke-static {p0, v0}, Lk0/j/a;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->updatesChannelContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a083a
|
|
|
|
invoke-static {p0, v0}, Lk0/j/a;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->localeContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$configureUI(Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel$ViewState;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->configureUI(Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel$ViewState;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$getViewModel$p(Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;)Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->viewModel:Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel;
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const-string p0, "viewModel"
|
|
|
|
invoke-static {p0}, Lk0/n/c/i;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$setViewModel$p(Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->viewModel:Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final configureUI(Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel$ViewState;)V
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel$ViewState$Uninitialized;->INSTANCE:Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel$ViewState$Uninitialized;
|
|
|
|
invoke-static {p1, v0}, Lk0/n/c/i;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sget-object v0, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel$ViewState$Invalid;->INSTANCE:Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel$ViewState$Invalid;
|
|
|
|
invoke-static {p1, v0}, Lk0/n/c/i;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireActivity()Landroidx/fragment/app/FragmentActivity;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/app/Activity;->finish()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
instance-of v0, p1, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel$ViewState$Loaded;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
check-cast p1, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel$ViewState$Loaded;
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->configureValidUI(Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel$ViewState$Loaded;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
:cond_2
|
|
new-instance p1, Lkotlin/NoWhenBranchMatchedException;
|
|
|
|
invoke-direct {p1}, Lkotlin/NoWhenBranchMatchedException;-><init>()V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private final configureValidUI(Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel$ViewState$Loaded;)V
|
|
.locals 4
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->getRulesChannelContainer()Lcom/discord/widgets/servers/communityguild/CommunityServerSettingSelectorView;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel$ViewState$Loaded;->getRulesChannel()Lcom/discord/models/domain/ModelChannel;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "requireContext().getStri\u2026ublic_no_option_selected)"
|
|
|
|
const v3, 0x7f120b2e
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelChannel;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1, v2}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:goto_0
|
|
invoke-virtual {v0, v1}, Lcom/discord/widgets/servers/communityguild/CommunityServerSettingSelectorView;->setSubtitle(Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->getUpdatesChannelContainer()Lcom/discord/widgets/servers/communityguild/CommunityServerSettingSelectorView;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel$ViewState$Loaded;->getUpdatesChannel()Lcom/discord/models/domain/ModelChannel;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelChannel;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1, v2}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:goto_1
|
|
invoke-virtual {v0, v1}, Lcom/discord/widgets/servers/communityguild/CommunityServerSettingSelectorView;->setSubtitle(Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->getLocaleContainer()Lcom/discord/widgets/servers/communityguild/CommunityServerSettingSelectorView;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel$ViewState$Loaded;->getGuild()Lcom/discord/models/domain/ModelGuild;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelGuild;->getPreferredLocale()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Lcom/discord/widgets/settings/WidgetSettingsLanguage;->getAsStringInLocale(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "WidgetSettingsLanguage.g\u2026te.guild.preferredLocale)"
|
|
|
|
invoke-static {v1, v2}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/widgets/servers/communityguild/CommunityServerSettingSelectorView;->setSubtitle(Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->getRulesChannelContainer()Lcom/discord/widgets/servers/communityguild/CommunityServerSettingSelectorView;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$configureValidUI$1;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$configureValidUI$1;-><init>(Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel$ViewState$Loaded;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->getUpdatesChannelContainer()Lcom/discord/widgets/servers/communityguild/CommunityServerSettingSelectorView;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$configureValidUI$2;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$configureValidUI$2;-><init>(Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel$ViewState$Loaded;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->getLocaleContainer()Lcom/discord/widgets/servers/communityguild/CommunityServerSettingSelectorView;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$configureValidUI$3;
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$configureValidUI$3;-><init>(Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;)V
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final create(Landroid/content/Context;J)V
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->Companion:Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$Companion;
|
|
|
|
invoke-virtual {v0, p0, p1, p2}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$Companion;->create(Landroid/content/Context;J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final getLocaleContainer()Lcom/discord/widgets/servers/communityguild/CommunityServerSettingSelectorView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->localeContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->$$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, Lcom/discord/widgets/servers/communityguild/CommunityServerSettingSelectorView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getRulesChannelContainer()Lcom/discord/widgets/servers/communityguild/CommunityServerSettingSelectorView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->rulesChannelContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->$$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/widgets/servers/communityguild/CommunityServerSettingSelectorView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getUpdatesChannelContainer()Lcom/discord/widgets/servers/communityguild/CommunityServerSettingSelectorView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->updatesChannelContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/discord/widgets/servers/communityguild/CommunityServerSettingSelectorView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getContentViewResId()I
|
|
.locals 1
|
|
|
|
const v0, 0x7f0d0251
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public onActivityCreated(Landroid/os/Bundle;)V
|
|
.locals 2
|
|
|
|
invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onActivityCreated(Landroid/os/Bundle;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {p0, p1, v0, v1}, Lcom/discord/app/AppFragment;->setActionBarDisplayHomeAsUpEnabled$default(Lcom/discord/app/AppFragment;ZILjava/lang/Object;)Landroidx/appcompat/widget/Toolbar;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onActivityResult(IILandroid/content/Intent;)V
|
|
.locals 8
|
|
|
|
invoke-super {p0, p1, p2, p3}, Lcom/discord/app/AppFragment;->onActivityResult(IILandroid/content/Intent;)V
|
|
|
|
packed-switch p1, :pswitch_data_0
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_0
|
|
sget-object v0, Lcom/discord/widgets/settings/WidgetSettingsLanguageSelect;->Companion:Lcom/discord/widgets/settings/WidgetSettingsLanguageSelect$Companion;
|
|
|
|
new-instance v2, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$onActivityResult$3;
|
|
|
|
invoke-direct {v2, p0}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$onActivityResult$3;-><init>(Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;)V
|
|
|
|
invoke-virtual {v0, p1, p3, v2}, Lcom/discord/widgets/settings/WidgetSettingsLanguageSelect$Companion;->handleResult(ILandroid/content/Intent;Lkotlin/jvm/functions/Function2;)V
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_1
|
|
sget-object v0, Lcom/discord/widgets/channels/WidgetChannelSelector;->Companion:Lcom/discord/widgets/channels/WidgetChannelSelector$Companion;
|
|
|
|
new-instance v4, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$onActivityResult$2;
|
|
|
|
invoke-direct {v4, p0}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$onActivityResult$2;-><init>(Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;)V
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/16 v6, 0x8
|
|
|
|
const/4 v7, 0x0
|
|
|
|
move v1, p1
|
|
|
|
move-object v2, p3
|
|
|
|
move-object v3, v4
|
|
|
|
move v4, v5
|
|
|
|
move v5, v6
|
|
|
|
move-object v6, v7
|
|
|
|
invoke-static/range {v0 .. v6}, Lcom/discord/widgets/channels/WidgetChannelSelector$Companion;->handleResult$default(Lcom/discord/widgets/channels/WidgetChannelSelector$Companion;ILandroid/content/Intent;Lkotlin/jvm/functions/Function3;ZILjava/lang/Object;)V
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_2
|
|
sget-object v0, Lcom/discord/widgets/channels/WidgetChannelSelector;->Companion:Lcom/discord/widgets/channels/WidgetChannelSelector$Companion;
|
|
|
|
new-instance v4, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$onActivityResult$1;
|
|
|
|
invoke-direct {v4, p0}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$onActivityResult$1;-><init>(Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;)V
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/16 v6, 0x8
|
|
|
|
const/4 v7, 0x0
|
|
|
|
move v1, p1
|
|
|
|
move-object v2, p3
|
|
|
|
move-object v3, v4
|
|
|
|
move v4, v5
|
|
|
|
move v5, v6
|
|
|
|
move-object v6, v7
|
|
|
|
invoke-static/range {v0 .. v6}, Lcom/discord/widgets/channels/WidgetChannelSelector$Companion;->handleResult$default(Lcom/discord/widgets/channels/WidgetChannelSelector$Companion;ILandroid/content/Intent;Lkotlin/jvm/functions/Function3;ZILjava/lang/Object;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0xfa2
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public onViewBound(Landroid/view/View;)V
|
|
.locals 12
|
|
|
|
const-string v0, "view"
|
|
|
|
invoke-static {p1, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
|
|
|
|
invoke-virtual {p0}, Lcom/discord/app/AppFragment;->getMostRecentIntent()Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "INTENT_EXTRA_GUILD_ID"
|
|
|
|
const-wide/16 v1, -0x1
|
|
|
|
invoke-virtual {p1, v0, v1, v2}, Landroid/content/Intent;->getLongExtra(Ljava/lang/String;J)J
|
|
|
|
move-result-wide v4
|
|
|
|
new-instance p1, Landroidx/lifecycle/ViewModelProvider;
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireActivity()Landroidx/fragment/app/FragmentActivity;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel$Factory;
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/16 v10, 0x1e
|
|
|
|
const/4 v11, 0x0
|
|
|
|
move-object v3, v1
|
|
|
|
invoke-direct/range {v3 .. v11}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel$Factory;-><init>(JLcom/discord/stores/StoreGuilds;Lcom/discord/stores/StoreChannels;Lcom/discord/stores/StorePermissions;Lcom/discord/stores/StoreUser;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
invoke-direct {p1, v0, v1}, Landroidx/lifecycle/ViewModelProvider;-><init>(Landroidx/lifecycle/ViewModelStoreOwner;Landroidx/lifecycle/ViewModelProvider$Factory;)V
|
|
|
|
const-class v0, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel;
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/lifecycle/ViewModelProvider;->get(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "ViewModelProvider(requir\u2026iewViewModel::class.java)"
|
|
|
|
invoke-static {p1, v0}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p1, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel;
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->viewModel:Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel;
|
|
|
|
const-string v0, "viewModel"
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-virtual {p1}, Lf/a/b/q0;->observeViewState()Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lrx/Observable;->q()Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v2, "viewModel\n .obser\u2026 .distinctUntilChanged()"
|
|
|
|
invoke-static {p1, v2}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v2, 0x2
|
|
|
|
invoke-static {p1, p0, v1, v2, v1}, 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 v3
|
|
|
|
const-class v4, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
new-instance v9, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$onViewBound$1;
|
|
|
|
invoke-direct {v9, p0}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$onViewBound$1;-><init>(Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;)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 p1, p0, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;->viewModel:Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverviewViewModel;->observeEvents()Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1, p0, v1, v2, v1}, 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 v3
|
|
|
|
const-class v4, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
new-instance v9, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$onViewBound$2;
|
|
|
|
invoke-direct {v9, p0}, Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview$onViewBound$2;-><init>(Lcom/discord/widgets/servers/communityguild/WidgetServerSettingsCommunityOverview;)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
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-static {v0}, Lk0/n/c/i;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_1
|
|
invoke-static {v0}, Lk0/n/c/i;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public onViewBoundOrOnResume()V
|
|
.locals 1
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onViewBoundOrOnResume()V
|
|
|
|
const v0, 0x7f120a46
|
|
|
|
invoke-virtual {p0, v0}, Lcom/discord/app/AppFragment;->setActionBarTitle(I)Lkotlin/Unit;
|
|
|
|
return-void
|
|
.end method
|