548 lines
19 KiB
Smali
548 lines
19 KiB
Smali
|
.class public final Lcom/discord/widgets/settings/WidgetSettingsNotifications;
|
||
|
.super Lcom/discord/app/AppFragment;
|
||
|
.source "WidgetSettingsNotifications.kt"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/MemberClasses;
|
||
|
value = {
|
||
|
Lcom/discord/widgets/settings/WidgetSettingsNotifications$Companion;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
||
|
|
||
|
.field public static final Companion:Lcom/discord/widgets/settings/WidgetSettingsNotifications$Companion;
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public final blinkToggle$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
.field public final enabledInAppToggle$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
.field public final enabledToggle$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
.field public final notificationStore:Lcom/discord/stores/StoreNotifications;
|
||
|
|
||
|
.field public final settingsWrap$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
.field public final soundsToggle$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
.field public final vibrateToggle$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public static constructor <clinit>()V
|
||
|
.locals 5
|
||
|
|
||
|
const/4 v0, 0x6
|
||
|
|
||
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
||
|
|
||
|
const-class v1, Lcom/discord/widgets/settings/WidgetSettingsNotifications;
|
||
|
|
||
|
const-string v2, "enabledToggle"
|
||
|
|
||
|
const-string v3, "getEnabledToggle()Lcom/discord/views/CheckedSetting;"
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lz/n/c/s;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
aput-object v1, v0, v4
|
||
|
|
||
|
const-class v1, Lcom/discord/widgets/settings/WidgetSettingsNotifications;
|
||
|
|
||
|
const-string v2, "enabledInAppToggle"
|
||
|
|
||
|
const-string v3, "getEnabledInAppToggle()Lcom/discord/views/CheckedSetting;"
|
||
|
|
||
|
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lz/n/c/s;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
aput-object v1, v0, v2
|
||
|
|
||
|
const-class v1, Lcom/discord/widgets/settings/WidgetSettingsNotifications;
|
||
|
|
||
|
const-string v2, "blinkToggle"
|
||
|
|
||
|
const-string v3, "getBlinkToggle()Lcom/discord/views/CheckedSetting;"
|
||
|
|
||
|
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lz/n/c/s;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
const/4 v2, 0x2
|
||
|
|
||
|
aput-object v1, v0, v2
|
||
|
|
||
|
const-class v1, Lcom/discord/widgets/settings/WidgetSettingsNotifications;
|
||
|
|
||
|
const-string v2, "vibrateToggle"
|
||
|
|
||
|
const-string v3, "getVibrateToggle()Lcom/discord/views/CheckedSetting;"
|
||
|
|
||
|
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lz/n/c/s;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
const/4 v2, 0x3
|
||
|
|
||
|
aput-object v1, v0, v2
|
||
|
|
||
|
const-class v1, Lcom/discord/widgets/settings/WidgetSettingsNotifications;
|
||
|
|
||
|
const-string v2, "soundsToggle"
|
||
|
|
||
|
const-string v3, "getSoundsToggle()Lcom/discord/views/CheckedSetting;"
|
||
|
|
||
|
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lz/n/c/s;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
const/4 v2, 0x4
|
||
|
|
||
|
aput-object v1, v0, v2
|
||
|
|
||
|
const-class v1, Lcom/discord/widgets/settings/WidgetSettingsNotifications;
|
||
|
|
||
|
const-string v2, "settingsWrap"
|
||
|
|
||
|
const-string v3, "getSettingsWrap()Landroid/widget/LinearLayout;"
|
||
|
|
||
|
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lz/n/c/s;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
const/4 v2, 0x5
|
||
|
|
||
|
aput-object v1, v0, v2
|
||
|
|
||
|
sput-object v0, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
||
|
|
||
|
new-instance v0, Lcom/discord/widgets/settings/WidgetSettingsNotifications$Companion;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-direct {v0, v1}, Lcom/discord/widgets/settings/WidgetSettingsNotifications$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||
|
|
||
|
sput-object v0, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->Companion:Lcom/discord/widgets/settings/WidgetSettingsNotifications$Companion;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>()V
|
||
|
.locals 1
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
||
|
|
||
|
const v0, 0x7f0a098d
|
||
|
|
||
|
invoke-static {p0, v0}, Lz/i/s;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->enabledToggle$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
const v0, 0x7f0a097a
|
||
|
|
||
|
invoke-static {p0, v0}, Lz/i/s;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->enabledInAppToggle$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
const v0, 0x7f0a098c
|
||
|
|
||
|
invoke-static {p0, v0}, Lz/i/s;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->blinkToggle$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
const v0, 0x7f0a098f
|
||
|
|
||
|
invoke-static {p0, v0}, Lz/i/s;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->vibrateToggle$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
const v0, 0x7f0a098e
|
||
|
|
||
|
invoke-static {p0, v0}, Lz/i/s;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->soundsToggle$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
const v0, 0x7f0a0990
|
||
|
|
||
|
invoke-static {p0, v0}, Lz/i/s;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->settingsWrap$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getNotifications()Lcom/discord/stores/StoreNotifications;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->notificationStore:Lcom/discord/stores/StoreNotifications;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$getBlinkToggle$p(Lcom/discord/widgets/settings/WidgetSettingsNotifications;)Lcom/discord/views/CheckedSetting;
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->getBlinkToggle()Lcom/discord/views/CheckedSetting;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$getEnabledInAppToggle$p(Lcom/discord/widgets/settings/WidgetSettingsNotifications;)Lcom/discord/views/CheckedSetting;
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->getEnabledInAppToggle()Lcom/discord/views/CheckedSetting;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$getEnabledToggle$p(Lcom/discord/widgets/settings/WidgetSettingsNotifications;)Lcom/discord/views/CheckedSetting;
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->getEnabledToggle()Lcom/discord/views/CheckedSetting;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$getSettingsWrap$p(Lcom/discord/widgets/settings/WidgetSettingsNotifications;)Landroid/widget/LinearLayout;
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->getSettingsWrap()Landroid/widget/LinearLayout;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$getSoundsToggle$p(Lcom/discord/widgets/settings/WidgetSettingsNotifications;)Lcom/discord/views/CheckedSetting;
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->getSoundsToggle()Lcom/discord/views/CheckedSetting;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$getVibrateToggle$p(Lcom/discord/widgets/settings/WidgetSettingsNotifications;)Lcom/discord/views/CheckedSetting;
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->getVibrateToggle()Lcom/discord/views/CheckedSetting;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method private final getBlinkToggle()Lcom/discord/views/CheckedSetting;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->blinkToggle$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->$$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/views/CheckedSetting;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private final getEnabledInAppToggle()Lcom/discord/views/CheckedSetting;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->enabledInAppToggle$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->$$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 getEnabledToggle()Lcom/discord/views/CheckedSetting;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->enabledToggle$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->$$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/views/CheckedSetting;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private final getSettingsWrap()Landroid/widget/LinearLayout;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->settingsWrap$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
||
|
|
||
|
const/4 v2, 0x5
|
||
|
|
||
|
aget-object v1, v1, v2
|
||
|
|
||
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Landroid/widget/LinearLayout;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private final getSoundsToggle()Lcom/discord/views/CheckedSetting;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->soundsToggle$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->$$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 getVibrateToggle()Lcom/discord/views/CheckedSetting;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->vibrateToggle$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->$$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/WidgetSettingsNotifications;->Companion:Lcom/discord/widgets/settings/WidgetSettingsNotifications$Companion;
|
||
|
|
||
|
invoke-virtual {v0, p0}, Lcom/discord/widgets/settings/WidgetSettingsNotifications$Companion;->launch(Landroid/content/Context;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public getContentViewResId()I
|
||
|
.locals 1
|
||
|
|
||
|
const v0, 0x7f0d02a1
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public onViewBound(Landroid/view/View;)V
|
||
|
.locals 2
|
||
|
|
||
|
const-string v0, "view"
|
||
|
|
||
|
invoke-static {p1, v0}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
|
||
|
|
||
|
const p1, 0x7f1218ee
|
||
|
|
||
|
invoke-virtual {p0, p1}, Lcom/discord/app/AppFragment;->setActionBarSubtitle(I)Lkotlin/Unit;
|
||
|
|
||
|
const p1, 0x7f121132
|
||
|
|
||
|
invoke-virtual {p0, p1}, Lcom/discord/app/AppFragment;->setActionBarTitle(I)Lkotlin/Unit;
|
||
|
|
||
|
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;
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->notificationStore:Lcom/discord/stores/StoreNotifications;
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->getEnabledToggle()Lcom/discord/views/CheckedSetting;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
new-instance v1, Lcom/discord/widgets/settings/WidgetSettingsNotifications$onViewBound$1$1;
|
||
|
|
||
|
invoke-direct {v1, p1}, Lcom/discord/widgets/settings/WidgetSettingsNotifications$onViewBound$1$1;-><init>(Lcom/discord/stores/StoreNotifications;)V
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lcom/discord/views/CheckedSetting;->setOnCheckedListener(Lrx/functions/Action1;)V
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->getEnabledInAppToggle()Lcom/discord/views/CheckedSetting;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
new-instance v1, Lcom/discord/widgets/settings/WidgetSettingsNotifications$onViewBound$1$2;
|
||
|
|
||
|
invoke-direct {v1, p1}, Lcom/discord/widgets/settings/WidgetSettingsNotifications$onViewBound$1$2;-><init>(Lcom/discord/stores/StoreNotifications;)V
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lcom/discord/views/CheckedSetting;->setOnCheckedListener(Lrx/functions/Action1;)V
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->getBlinkToggle()Lcom/discord/views/CheckedSetting;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
new-instance v1, Lcom/discord/widgets/settings/WidgetSettingsNotifications$onViewBound$1$3;
|
||
|
|
||
|
invoke-direct {v1, p1}, Lcom/discord/widgets/settings/WidgetSettingsNotifications$onViewBound$1$3;-><init>(Lcom/discord/stores/StoreNotifications;)V
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lcom/discord/views/CheckedSetting;->setOnCheckedListener(Lrx/functions/Action1;)V
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->getVibrateToggle()Lcom/discord/views/CheckedSetting;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
new-instance v1, Lcom/discord/widgets/settings/WidgetSettingsNotifications$onViewBound$1$4;
|
||
|
|
||
|
invoke-direct {v1, p1}, Lcom/discord/widgets/settings/WidgetSettingsNotifications$onViewBound$1$4;-><init>(Lcom/discord/stores/StoreNotifications;)V
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lcom/discord/views/CheckedSetting;->setOnCheckedListener(Lrx/functions/Action1;)V
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsNotifications;->getSoundsToggle()Lcom/discord/views/CheckedSetting;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
new-instance v1, Lcom/discord/widgets/settings/WidgetSettingsNotifications$onViewBound$1$5;
|
||
|
|
||
|
invoke-direct {v1, p1}, Lcom/discord/widgets/settings/WidgetSettingsNotifications$onViewBound$1$5;-><init>(Lcom/discord/stores/StoreNotifications;)V
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lcom/discord/views/CheckedSetting;->setOnCheckedListener(Lrx/functions/Action1;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onViewBoundOrOnResume()V
|
||
|
.locals 9
|
||
|
|
||
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onViewBoundOrOnResume()V
|
||
|
|
||
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getNotifications()Lcom/discord/stores/StoreNotifications;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/stores/StoreNotifications;->getSettings()Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const/4 v7, 0x0
|
||
|
|
||
|
const/4 v1, 0x2
|
||
|
|
||
|
invoke-static {v0, p0, v7, v1, v7}, 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
|
||
|
|
||
|
new-instance v5, Lcom/discord/widgets/settings/WidgetSettingsNotifications$onViewBoundOrOnResume$1;
|
||
|
|
||
|
invoke-direct {v5, p0}, Lcom/discord/widgets/settings/WidgetSettingsNotifications$onViewBoundOrOnResume$1;-><init>(Lcom/discord/widgets/settings/WidgetSettingsNotifications;)V
|
||
|
|
||
|
const-class v3, Lcom/discord/widgets/settings/WidgetSettingsNotifications;
|
||
|
|
||
|
const/16 v1, 0x3c
|
||
|
|
||
|
and-int/lit8 v2, v1, 0x4
|
||
|
|
||
|
and-int/lit8 v2, v1, 0x8
|
||
|
|
||
|
and-int/lit8 v2, v1, 0x10
|
||
|
|
||
|
and-int/lit8 v1, v1, 0x20
|
||
|
|
||
|
const-string v1, "onNext"
|
||
|
|
||
|
invoke-static {v5, v1}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const-string v1, "errorClass"
|
||
|
|
||
|
invoke-static {v3, v1}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
new-instance v8, Lf/a/b/c0;
|
||
|
|
||
|
move-object v1, v8
|
||
|
|
||
|
move-object v2, v7
|
||
|
|
||
|
move-object v4, v7
|
||
|
|
||
|
move-object v6, v7
|
||
|
|
||
|
invoke-direct/range {v1 .. v7}, Lf/a/b/c0;-><init>(Landroid/content/Context;Ljava/lang/Class;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lrx/functions/Action1;Lkotlin/jvm/functions/Function0;)V
|
||
|
|
||
|
invoke-virtual {v0, v8}, Lrx/Observable;->k(Lrx/Observable$c;)Lrx/Observable;
|
||
|
|
||
|
return-void
|
||
|
.end method
|