718 lines
27 KiB
Smali
718 lines
27 KiB
Smali
.class public final Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;
|
|
.super Lcom/discord/app/AppFragment;
|
|
.source "WidgetServerSettingsPublicOverview.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
.field public static final Companion:Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview$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/publicguild/WidgetServerSettingsPublicOverviewViewModel;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 6
|
|
|
|
const/4 v0, 0x3
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v1, Lw/u/b/u;
|
|
|
|
const-class v2, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;
|
|
|
|
invoke-static {v2}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "rulesChannelContainer"
|
|
|
|
const-string v4, "getRulesChannelContainer()Lcom/discord/widgets/servers/publicguild/PublicServerSettingSelectorView;"
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v2, Lw/u/b/w;->a:Lw/u/b/x;
|
|
|
|
invoke-virtual {v2, v1}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
const/4 v1, 0x1
|
|
|
|
new-instance v2, Lw/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;
|
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "updatesChannelContainer"
|
|
|
|
const-string v5, "getUpdatesChannelContainer()Lcom/discord/widgets/servers/publicguild/PublicServerSettingSelectorView;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x2
|
|
|
|
new-instance v2, Lw/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;
|
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "localeContainer"
|
|
|
|
const-string v5, "getLocaleContainer()Lcom/discord/widgets/servers/publicguild/PublicServerSettingSelectorView;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
sput-object v0, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v0, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview$Companion;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->Companion:Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview$Companion;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
|
|
|
const v0, 0x7f0a075d
|
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->rulesChannelContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a0762
|
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->updatesChannelContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a075a
|
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->localeContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$configureUI(Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel$ViewState;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->configureUI(Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel$ViewState;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$getViewModel$p(Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;)Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->viewModel:Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel;
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const-string p0, "viewModel"
|
|
|
|
invoke-static {p0}, Lw/u/b/j;->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/publicguild/WidgetServerSettingsPublicOverview;Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->viewModel:Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final configureUI(Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel$ViewState;)V
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel$ViewState$Uninitialized;->INSTANCE:Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel$ViewState$Uninitialized;
|
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->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/publicguild/WidgetServerSettingsPublicOverviewViewModel$ViewState$Invalid;->INSTANCE:Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel$ViewState$Invalid;
|
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->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/publicguild/WidgetServerSettingsPublicOverviewViewModel$ViewState$Loaded;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
check-cast p1, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel$ViewState$Loaded;
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->configureValidUI(Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel$ViewState$Loaded;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
:cond_2
|
|
new-instance p1, Lw/g;
|
|
|
|
invoke-direct {p1}, Lw/g;-><init>()V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private final configureValidUI(Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel$ViewState$Loaded;)V
|
|
.locals 4
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->getRulesChannelContainer()Lcom/discord/widgets/servers/publicguild/PublicServerSettingSelectorView;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel$ViewState$Loaded;->getRulesChannel()Lcom/discord/models/domain/ModelChannel;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "requireContext().getStri\u2026ublic_no_option_selected)"
|
|
|
|
const v3, 0x7f120999
|
|
|
|
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}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:goto_0
|
|
invoke-virtual {v0, v1}, Lcom/discord/widgets/servers/publicguild/PublicServerSettingSelectorView;->setSubtitle(Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->getUpdatesChannelContainer()Lcom/discord/widgets/servers/publicguild/PublicServerSettingSelectorView;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel$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}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:goto_1
|
|
invoke-virtual {v0, v1}, Lcom/discord/widgets/servers/publicguild/PublicServerSettingSelectorView;->setSubtitle(Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->getLocaleContainer()Lcom/discord/widgets/servers/publicguild/PublicServerSettingSelectorView;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel$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}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/widgets/servers/publicguild/PublicServerSettingSelectorView;->setSubtitle(Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->getRulesChannelContainer()Lcom/discord/widgets/servers/publicguild/PublicServerSettingSelectorView;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview$configureValidUI$1;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview$configureValidUI$1;-><init>(Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel$ViewState$Loaded;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->getUpdatesChannelContainer()Lcom/discord/widgets/servers/publicguild/PublicServerSettingSelectorView;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview$configureValidUI$2;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview$configureValidUI$2;-><init>(Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel$ViewState$Loaded;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->getLocaleContainer()Lcom/discord/widgets/servers/publicguild/PublicServerSettingSelectorView;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview$configureValidUI$3;
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview$configureValidUI$3;-><init>(Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;)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/publicguild/WidgetServerSettingsPublicOverview;->Companion:Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview$Companion;
|
|
|
|
invoke-virtual {v0, p0, p1, p2}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview$Companion;->create(Landroid/content/Context;J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final getLocaleContainer()Lcom/discord/widgets/servers/publicguild/PublicServerSettingSelectorView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->localeContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->$$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/publicguild/PublicServerSettingSelectorView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getRulesChannelContainer()Lcom/discord/widgets/servers/publicguild/PublicServerSettingSelectorView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->rulesChannelContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->$$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/publicguild/PublicServerSettingSelectorView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getUpdatesChannelContainer()Lcom/discord/widgets/servers/publicguild/PublicServerSettingSelectorView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->updatesChannelContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->$$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/publicguild/PublicServerSettingSelectorView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getContentViewResId()I
|
|
.locals 1
|
|
|
|
const v0, 0x7f0d0216
|
|
|
|
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, 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 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/publicguild/WidgetServerSettingsPublicOverview$onActivityResult$3;
|
|
|
|
invoke-direct {v2, p0}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview$onActivityResult$3;-><init>(Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;)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/publicguild/WidgetServerSettingsPublicOverview$onActivityResult$2;
|
|
|
|
invoke-direct {v4, p0}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview$onActivityResult$2;-><init>(Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;)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/publicguild/WidgetServerSettingsPublicOverview$onActivityResult$1;
|
|
|
|
invoke-direct {v4, p0}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview$onActivityResult$1;-><init>(Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;)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 13
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
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-wide/16 v1, -0x1
|
|
|
|
const-string v3, "INTENT_EXTRA_GUILD_ID"
|
|
|
|
invoke-virtual {p1, v3, v1, v2}, Landroid/content/Intent;->getLongExtra(Ljava/lang/String;J)J
|
|
|
|
move-result-wide v5
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireActivity()Landroidx/fragment/app/FragmentActivity;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v1, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel$Factory;
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v10, 0x0
|
|
|
|
const/16 v11, 0x1e
|
|
|
|
const/4 v12, 0x0
|
|
|
|
move-object v4, v1
|
|
|
|
invoke-direct/range {v4 .. v12}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel$Factory;-><init>(JLcom/discord/stores/StoreGuilds;Lcom/discord/stores/StoreChannels;Lcom/discord/stores/StorePermissions;Lcom/discord/stores/StoreUser;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
invoke-static {p1, v1}, Landroidx/lifecycle/ViewModelProviders;->of(Landroidx/fragment/app/FragmentActivity;Landroidx/lifecycle/ViewModelProvider$Factory;)Landroidx/lifecycle/ViewModelProvider;
|
|
|
|
move-result-object p1
|
|
|
|
const-class v1, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel;
|
|
|
|
invoke-virtual {p1, v1}, Landroidx/lifecycle/ViewModelProvider;->get(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v1, "ViewModelProviders.of(\n \u2026iewViewModel::class.java)"
|
|
|
|
invoke-static {p1, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p1, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel;
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->viewModel:Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel;
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;->viewModel:Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel;
|
|
|
|
const-string v1, "viewModel"
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-virtual {p1}, Le/a/b/c0;->observeViewState()Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lrx/Observable;->a()Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v2, "viewModel\n .obser\u2026 .distinctUntilChanged()"
|
|
|
|
invoke-static {p1, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v2, 0x2
|
|
|
|
invoke-static {p1, p0, v0, v2, v0}, 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/publicguild/WidgetServerSettingsPublicOverview;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
new-instance v9, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview$onViewBound$1;
|
|
|
|
invoke-direct {v9, p0}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview$onViewBound$1;-><init>(Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;)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/publicguild/WidgetServerSettingsPublicOverview;->viewModel:Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverviewViewModel;->observeEvents()Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1, p0, v0, v2, v0}, 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/publicguild/WidgetServerSettingsPublicOverview;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
new-instance v9, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview$onViewBound$2;
|
|
|
|
invoke-direct {v9, p0}, Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview$onViewBound$2;-><init>(Lcom/discord/widgets/servers/publicguild/WidgetServerSettingsPublicOverview;)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 {v1}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
invoke-static {v1}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
const-string p1, "view"
|
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public onViewBoundOrOnResume()V
|
|
.locals 1
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onViewBoundOrOnResume()V
|
|
|
|
const v0, 0x7f121038 # 1.941515E38f
|
|
|
|
invoke-virtual {p0, v0}, Lcom/discord/app/AppFragment;->setActionBarTitle(I)Lkotlin/Unit;
|
|
|
|
return-void
|
|
.end method
|