154 lines
3.4 KiB
Smali
154 lines
3.4 KiB
Smali
.class public final Lcom/discord/app/AppActivity$c;
|
|
.super Li0/n/c/i;
|
|
.source "AppActivity.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function0;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/app/AppActivity;->onCreate(Landroid/os/Bundle;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Li0/n/c/i;",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic this$0:Lcom/discord/app/AppActivity;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/app/AppActivity;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/app/AppActivity$c;->this$0:Lcom/discord/app/AppActivity;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
invoke-direct {p0, p1}, Li0/n/c/i;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic invoke()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Lcom/discord/app/AppActivity$c;->invoke()V
|
|
|
|
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final invoke()V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/discord/app/AppActivity$c;->this$0:Lcom/discord/app/AppActivity;
|
|
|
|
invoke-static {v0}, Lcom/discord/app/AppActivity;->b(Lcom/discord/app/AppActivity;)Lcom/discord/stores/StoreUserSettings;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreUserSettings;->getTheme()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "userSettings.theme"
|
|
|
|
invoke-static {v1, v2}, Li0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
sget-object v2, Lf/a/b/m;->f:Lf/a/b/m;
|
|
|
|
sget-object v2, Lf/a/b/m;->e:Ljava/util/List;
|
|
|
|
invoke-virtual {v0, v2}, Lcom/discord/app/AppActivity;->k(Ljava/util/List;)Z
|
|
|
|
move-result v2
|
|
|
|
const v3, 0x7f13001a
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v2, "light"
|
|
|
|
invoke-static {v1, v2}, Li0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
const v3, 0x7f130023
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const-string v2, "dark"
|
|
|
|
invoke-static {v1, v2}, Li0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const-string v2, "pureEvil"
|
|
|
|
invoke-static {v1, v2}, Li0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
const v3, 0x7f13001c
|
|
|
|
:cond_3
|
|
:goto_0
|
|
invoke-virtual {v0, v3}, Landroidx/appcompat/app/AppCompatActivity;->setTheme(I)V
|
|
|
|
iget-object v0, p0, Lcom/discord/app/AppActivity$c;->this$0:Lcom/discord/app/AppActivity;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/app/AppActivity;->h()Lcom/discord/stores/StoreUserSettings;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreUserSettings;->getLocale()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "userSettings.locale"
|
|
|
|
invoke-static {v1, v2}, Li0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/discord/app/AppActivity;->d(Ljava/lang/String;Z)V
|
|
|
|
return-void
|
|
|
|
:cond_4
|
|
const/4 v0, 0x0
|
|
|
|
throw v0
|
|
.end method
|