apkfuckery/com.discord/smali/e/a/a/o.smali
2020-04-17 18:36:30 +02:00

130 lines
3 KiB
Smali

.class public final Le/a/a/o;
.super Le/a/b/b0;
.source "WidgetAccessibilityDetectionDialogViewModel.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Le/a/a/o$b;,
Le/a/a/o$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Le/a/b/b0<",
"Le/a/a/o$b;",
">;"
}
.end annotation
# instance fields
.field public final d:Lcom/discord/stores/StoreUserSettings;
.field public final e:Lcom/discord/stores/StoreNotices;
# direct methods
.method public constructor <init>(Lcom/discord/stores/StoreUserSettings;Lcom/discord/stores/StoreNotices;)V
.locals 1
const/4 v0, 0x0
if-eqz p1, :cond_1
if-eqz p2, :cond_0
sget-object v0, Le/a/a/o$b$a;->a:Le/a/a/o$b$a;
invoke-direct {p0, v0}, Le/a/b/b0;-><init>(Ljava/lang/Object;)V
iput-object p1, p0, Le/a/a/o;->d:Lcom/discord/stores/StoreUserSettings;
iput-object p2, p0, Le/a/a/o;->e:Lcom/discord/stores/StoreNotices;
return-void
:cond_0
const-string p1, "storeNotices"
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
throw v0
:cond_1
const-string p1, "storeUserSettings"
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
throw v0
.end method
# virtual methods
.method public final a(Z)V
.locals 12
iget-object v0, p0, Le/a/a/o;->d:Lcom/discord/stores/StoreUserSettings;
invoke-virtual {v0, p1}, Lcom/discord/stores/StoreUserSettings;->updateAllowAccessibilityDetection(Z)Lrx/Observable;
move-result-object p1
const-string v0, "storeUserSettings\n \u2026ibilityDetection(allowed)"
invoke-static {p1, v0}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
const/4 v1, 0x1
const/4 v2, 0x0
invoke-static {p1, v0, v1, v2}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->restSubscribeOn$default(Lrx/Observable;ZILjava/lang/Object;)Lrx/Observable;
move-result-object v3
const-class v4, Le/a/a/o;
sget-object v9, Le/a/a/o$c;->d:Le/a/a/o$c;
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
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
.end method
.method public onCleared()V
.locals 6
iget-object v0, p0, Le/a/a/o;->e:Lcom/discord/stores/StoreNotices;
sget-object v1, Le/a/a/g;->i:Le/a/a/g$b;
invoke-virtual {v1}, Le/a/a/g$b;->a()Ljava/lang/String;
const-string v1, "ALLOW_ACCESSIBILITY_DETECTION_DIALOG"
const-wide/16 v2, 0x0
const/4 v4, 0x2
const/4 v5, 0x0
invoke-static/range {v0 .. v5}, Lcom/discord/stores/StoreNotices;->markSeen$default(Lcom/discord/stores/StoreNotices;Ljava/lang/String;JILjava/lang/Object;)V
return-void
.end method