609 lines
19 KiB
Smali
609 lines
19 KiB
Smali
.class public final Lcom/discord/widgets/settings/WidgetSettingsBehavior;
|
|
.super Lcom/discord/app/AppFragment;
|
|
.source "WidgetSettingsBehavior.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/widgets/settings/WidgetSettingsBehavior$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
.field public static final API_LINK:Ljava/lang/String; = "https://discordapp.com/developers/docs/intro"
|
|
|
|
.field public static final Companion:Lcom/discord/widgets/settings/WidgetSettingsBehavior$Companion;
|
|
|
|
|
|
# instance fields
|
|
.field public final backButtonCS$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final backButtonDivider$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final backButtonHeader$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final customTabsCS$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final devModeCS$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final shiftSendCS$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final tabsFeatureFlag:Lcom/discord/widgets/tabs/TabsFeatureFlag;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 6
|
|
|
|
const/4 v0, 0x6
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v1, Lw/u/b/u;
|
|
|
|
const-class v2, Lcom/discord/widgets/settings/WidgetSettingsBehavior;
|
|
|
|
invoke-static {v2}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "backButtonHeader"
|
|
|
|
const-string v4, "getBackButtonHeader()Landroid/view/View;"
|
|
|
|
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/settings/WidgetSettingsBehavior;
|
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "backButtonCS"
|
|
|
|
const-string v5, "getBackButtonCS()Lcom/discord/views/CheckedSetting;"
|
|
|
|
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/settings/WidgetSettingsBehavior;
|
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "backButtonDivider"
|
|
|
|
const-string v5, "getBackButtonDivider()Landroid/view/View;"
|
|
|
|
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, 0x3
|
|
|
|
new-instance v2, Lw/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/settings/WidgetSettingsBehavior;
|
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "shiftSendCS"
|
|
|
|
const-string v5, "getShiftSendCS()Lcom/discord/views/CheckedSetting;"
|
|
|
|
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, 0x4
|
|
|
|
new-instance v2, Lw/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/settings/WidgetSettingsBehavior;
|
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "devModeCS"
|
|
|
|
const-string v5, "getDevModeCS()Lcom/discord/views/CheckedSetting;"
|
|
|
|
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, 0x5
|
|
|
|
new-instance v2, Lw/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/settings/WidgetSettingsBehavior;
|
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "customTabsCS"
|
|
|
|
const-string v5, "getCustomTabsCS()Lcom/discord/views/CheckedSetting;"
|
|
|
|
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/settings/WidgetSettingsBehavior;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v0, Lcom/discord/widgets/settings/WidgetSettingsBehavior$Companion;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/settings/WidgetSettingsBehavior$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->Companion:Lcom/discord/widgets/settings/WidgetSettingsBehavior$Companion;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
|
|
|
const v0, 0x7f0a07cd
|
|
|
|
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/settings/WidgetSettingsBehavior;->backButtonHeader$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a07ce
|
|
|
|
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/settings/WidgetSettingsBehavior;->backButtonCS$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a07cc
|
|
|
|
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/settings/WidgetSettingsBehavior;->backButtonDivider$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a07d1
|
|
|
|
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/settings/WidgetSettingsBehavior;->shiftSendCS$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a07d0
|
|
|
|
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/settings/WidgetSettingsBehavior;->devModeCS$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a07cf
|
|
|
|
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/settings/WidgetSettingsBehavior;->customTabsCS$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v0, Lcom/discord/widgets/tabs/TabsFeatureFlag;->Companion:Lcom/discord/widgets/tabs/TabsFeatureFlag$Companion;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/tabs/TabsFeatureFlag$Companion;->getINSTANCE()Lcom/discord/widgets/tabs/TabsFeatureFlag;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->tabsFeatureFlag:Lcom/discord/widgets/tabs/TabsFeatureFlag;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final getBackButtonCS()Lcom/discord/views/CheckedSetting;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->backButtonCS$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->$$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/views/CheckedSetting;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getBackButtonDivider()Landroid/view/View;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->backButtonDivider$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->$$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/view/View;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getBackButtonHeader()Landroid/view/View;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->backButtonHeader$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getCustomTabsCS()Lcom/discord/views/CheckedSetting;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->customTabsCS$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->$$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, Lcom/discord/views/CheckedSetting;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getDevModeCS()Lcom/discord/views/CheckedSetting;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->devModeCS$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x4
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/discord/views/CheckedSetting;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getShiftSendCS()Lcom/discord/views/CheckedSetting;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->shiftSendCS$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x3
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/discord/views/CheckedSetting;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final launch(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->Companion:Lcom/discord/widgets/settings/WidgetSettingsBehavior$Companion;
|
|
|
|
invoke-virtual {v0, p0}, Lcom/discord/widgets/settings/WidgetSettingsBehavior$Companion;->launch(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getContentViewResId()I
|
|
.locals 1
|
|
|
|
const v0, 0x7f0d0224
|
|
|
|
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 p1, 0x7f121458
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/app/AppFragment;->setActionBarSubtitle(I)Lkotlin/Unit;
|
|
|
|
const p1, 0x7f120660
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/app/AppFragment;->setActionBarTitle(I)Lkotlin/Unit;
|
|
|
|
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 onViewBound(Landroid/view/View;)V
|
|
.locals 12
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
|
|
|
|
sget-object p1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreStream$Companion;->getUserSettings()Lcom/discord/stores/StoreUserSettings;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->tabsFeatureFlag:Lcom/discord/widgets/tabs/TabsFeatureFlag;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/tabs/TabsFeatureFlag;->isEnabled()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->getBackButtonHeader()Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
const/16 v3, 0x8
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/16 v5, 0x8
|
|
|
|
:goto_0
|
|
invoke-virtual {v2, v5}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->getBackButtonCS()Lcom/discord/views/CheckedSetting;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const/4 v5, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/16 v5, 0x8
|
|
|
|
:goto_1
|
|
invoke-virtual {v2, v5}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->getBackButtonDivider()Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:cond_2
|
|
invoke-virtual {v2, v3}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->getBackButtonCS()Lcom/discord/views/CheckedSetting;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreUserSettings;->getBackButtonOpensDrawer()Z
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v0, v2}, Lcom/discord/views/CheckedSetting;->setChecked(Z)V
|
|
|
|
new-instance v2, Lcom/discord/widgets/settings/WidgetSettingsBehavior$onViewBound$$inlined$apply$lambda$1;
|
|
|
|
invoke-direct {v2, p1}, Lcom/discord/widgets/settings/WidgetSettingsBehavior$onViewBound$$inlined$apply$lambda$1;-><init>(Lcom/discord/stores/StoreUserSettings;)V
|
|
|
|
invoke-virtual {v0, v2}, Lcom/discord/views/CheckedSetting;->setOnCheckedListener(Lrx/functions/Action1;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->getShiftSendCS()Lcom/discord/views/CheckedSetting;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreUserSettings;->getShiftEnterToSend()Z
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v0, v2}, Lcom/discord/views/CheckedSetting;->setChecked(Z)V
|
|
|
|
new-instance v2, Lcom/discord/widgets/settings/WidgetSettingsBehavior$onViewBound$$inlined$apply$lambda$2;
|
|
|
|
invoke-direct {v2, p1}, Lcom/discord/widgets/settings/WidgetSettingsBehavior$onViewBound$$inlined$apply$lambda$2;-><init>(Lcom/discord/stores/StoreUserSettings;)V
|
|
|
|
invoke-virtual {v0, v2}, Lcom/discord/views/CheckedSetting;->setOnCheckedListener(Lrx/functions/Action1;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->getDevModeCS()Lcom/discord/views/CheckedSetting;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreUserSettings;->getDeveloperMode()Z
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v0, v2}, Lcom/discord/views/CheckedSetting;->setChecked(Z)V
|
|
|
|
invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v5
|
|
|
|
const-string v2, "context"
|
|
|
|
invoke-static {v5, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const v2, 0x7f120515
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const-string v3, "https://discordapp.com/developers/docs/intro"
|
|
|
|
aput-object v3, v1, v4
|
|
|
|
invoke-virtual {p0, v2, v1}, Landroidx/fragment/app/Fragment;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
const-string v1, "getString(R.string.devel\u2026mode_help_text, API_LINK)"
|
|
|
|
invoke-static {v6, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/16 v10, 0x1c
|
|
|
|
const/4 v11, 0x0
|
|
|
|
invoke-static/range {v5 .. v11}, Lcom/discord/utilities/textprocessing/Parsers;->parseMaskedLinks$default(Landroid/content/Context;Ljava/lang/CharSequence;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function1;Ljava/lang/Integer;ILjava/lang/Object;)Ljava/lang/CharSequence;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1, v4}, Lcom/discord/views/CheckedSetting;->a(Ljava/lang/CharSequence;Z)V
|
|
|
|
new-instance v1, Lcom/discord/widgets/settings/WidgetSettingsBehavior$onViewBound$3$1;
|
|
|
|
invoke-direct {v1, v0}, Lcom/discord/widgets/settings/WidgetSettingsBehavior$onViewBound$3$1;-><init>(Lcom/discord/views/CheckedSetting;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/views/CheckedSetting;->setSubtextOnClickListener(Lrx/functions/Action0;)V
|
|
|
|
new-instance v1, Lcom/discord/widgets/settings/WidgetSettingsBehavior$onViewBound$$inlined$apply$lambda$3;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/discord/widgets/settings/WidgetSettingsBehavior$onViewBound$$inlined$apply$lambda$3;-><init>(Lcom/discord/widgets/settings/WidgetSettingsBehavior;Lcom/discord/stores/StoreUserSettings;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/views/CheckedSetting;->setOnCheckedListener(Lrx/functions/Action1;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsBehavior;->getCustomTabsCS()Lcom/discord/views/CheckedSetting;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreUserSettings;->getUseChromeCustomTabs()Z
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/views/CheckedSetting;->setChecked(Z)V
|
|
|
|
new-instance v1, Lcom/discord/widgets/settings/WidgetSettingsBehavior$onViewBound$$inlined$apply$lambda$4;
|
|
|
|
invoke-direct {v1, p1}, Lcom/discord/widgets/settings/WidgetSettingsBehavior$onViewBound$$inlined$apply$lambda$4;-><init>(Lcom/discord/stores/StoreUserSettings;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/views/CheckedSetting;->setOnCheckedListener(Lrx/functions/Action1;)V
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
const-string p1, "view"
|
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|