apkfuckery/com.discord/smali/com/discord/app/AppActivity.smali

1779 lines
44 KiB
Smali

.class public Lcom/discord/app/AppActivity;
.super Lcom/discord/app/c;
.source "AppActivity.kt"
# interfaces
.implements Lcom/discord/app/AppComponent;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/discord/app/AppActivity$Main;,
Lcom/discord/app/AppActivity$IncomingShare;,
Lcom/discord/app/AppActivity$b;,
Lcom/discord/app/AppActivity$a;
}
.end annotation
# static fields
.field static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
.field private static final sD:Landroid/content/Intent;
.field private static sE:Z
.field public static final sF:Lcom/discord/app/AppActivity$a;
# instance fields
.field private final paused:Lrx/subjects/Subject;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/subjects/Subject<",
"Ljava/lang/Void;",
"Ljava/lang/Void;",
">;"
}
.end annotation
.end field
.field private final sA:Lkotlin/Lazy;
.field private final sB:Lkotlin/Lazy;
.field private sC:Landroid/content/Intent;
.field final sx:Ljava/util/LinkedHashMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/LinkedHashMap<",
"Landroidx/fragment/app/Fragment;",
"Lkotlin/jvm/functions/Function1<",
"Landroid/content/Intent;",
"Lkotlin/Unit;",
">;>;"
}
.end annotation
.end field
.field private sy:I
.field private sz:Ljava/lang/String;
.field public toolbar:Landroidx/appcompat/widget/Toolbar;
# direct methods
.method static constructor <clinit>()V
.locals 6
const/4 v0, 0x2
new-array v0, v0, [Lkotlin/reflect/KProperty;
new-instance v1, Lkotlin/jvm/internal/u;
const-class v2, Lcom/discord/app/AppActivity;
invoke-static {v2}, Lkotlin/jvm/internal/v;->N(Ljava/lang/Class;)Lkotlin/reflect/b;
move-result-object v2
const-string v3, "userSettings"
const-string v4, "getUserSettings()Lcom/discord/stores/StoreUserSettings;"
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
invoke-static {v1}, Lkotlin/jvm/internal/v;->a(Lkotlin/jvm/internal/t;)Lkotlin/reflect/d;
move-result-object v1
check-cast v1, Lkotlin/reflect/KProperty;
const/4 v2, 0x0
aput-object v1, v0, v2
new-instance v1, Lkotlin/jvm/internal/u;
const-class v3, Lcom/discord/app/AppActivity;
invoke-static {v3}, Lkotlin/jvm/internal/v;->N(Ljava/lang/Class;)Lkotlin/reflect/b;
move-result-object v3
const-string v4, "screen"
const-string v5, "getScreen()Ljava/lang/Class;"
invoke-direct {v1, v3, v4, v5}, Lkotlin/jvm/internal/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
invoke-static {v1}, Lkotlin/jvm/internal/v;->a(Lkotlin/jvm/internal/t;)Lkotlin/reflect/d;
move-result-object v1
check-cast v1, Lkotlin/reflect/KProperty;
const/4 v3, 0x1
aput-object v1, v0, v3
sput-object v0, Lcom/discord/app/AppActivity;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
new-instance v0, Lcom/discord/app/AppActivity$a;
invoke-direct {v0, v2}, Lcom/discord/app/AppActivity$a;-><init>(B)V
sput-object v0, Lcom/discord/app/AppActivity;->sF:Lcom/discord/app/AppActivity$a;
new-instance v0, Landroid/content/Intent;
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
sput-object v0, Lcom/discord/app/AppActivity;->sD:Landroid/content/Intent;
sput-boolean v3, Lcom/discord/app/AppActivity;->sE:Z
return-void
.end method
.method public constructor <init>()V
.locals 3
invoke-direct {p0}, Lcom/discord/app/c;-><init>()V
new-instance v0, Ljava/util/LinkedHashMap;
invoke-direct {v0}, Ljava/util/LinkedHashMap;-><init>()V
iput-object v0, p0, Lcom/discord/app/AppActivity;->sx:Ljava/util/LinkedHashMap;
const/4 v0, -0x1
iput v0, p0, Lcom/discord/app/AppActivity;->sy:I
const-string v0, ""
iput-object v0, p0, Lcom/discord/app/AppActivity;->sz:Ljava/lang/String;
invoke-static {}, Lrx/subjects/PublishSubject;->Fk()Lrx/subjects/PublishSubject;
move-result-object v0
const-string v1, "PublishSubject.create()"
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
check-cast v0, Lrx/subjects/Subject;
iput-object v0, p0, Lcom/discord/app/AppActivity;->paused:Lrx/subjects/Subject;
sget-object v0, Lkotlin/j;->bdr:Lkotlin/j;
sget-object v1, Lcom/discord/app/AppActivity$l;->sP:Lcom/discord/app/AppActivity$l;
check-cast v1, Lkotlin/jvm/functions/Function0;
const-string v2, "mode"
invoke-static {v0, v2}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
const-string v2, "initializer"
invoke-static {v1, v2}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v2, Lkotlin/g;->$EnumSwitchMapping$0:[I
invoke-virtual {v0}, Lkotlin/j;->ordinal()I
move-result v0
aget v0, v2, v0
packed-switch v0, :pswitch_data_0
new-instance v0, Lkotlin/k;
invoke-direct {v0}, Lkotlin/k;-><init>()V
throw v0
:pswitch_0
new-instance v0, Lkotlin/u;
invoke-direct {v0, v1}, Lkotlin/u;-><init>(Lkotlin/jvm/functions/Function0;)V
check-cast v0, Lkotlin/Lazy;
goto :goto_0
:pswitch_1
new-instance v0, Lkotlin/o;
invoke-direct {v0, v1}, Lkotlin/o;-><init>(Lkotlin/jvm/functions/Function0;)V
check-cast v0, Lkotlin/Lazy;
goto :goto_0
:pswitch_2
new-instance v0, Lkotlin/p;
invoke-direct {v0, v1}, Lkotlin/p;-><init>(Lkotlin/jvm/functions/Function0;)V
check-cast v0, Lkotlin/Lazy;
:goto_0
iput-object v0, p0, Lcom/discord/app/AppActivity;->sA:Lkotlin/Lazy;
new-instance v0, Lcom/discord/app/AppActivity$h;
invoke-direct {v0, p0}, Lcom/discord/app/AppActivity$h;-><init>(Lcom/discord/app/AppActivity;)V
check-cast v0, Lkotlin/jvm/functions/Function0;
invoke-static {v0}, Lkotlin/f;->b(Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy;
move-result-object v0
iput-object v0, p0, Lcom/discord/app/AppActivity;->sB:Lkotlin/Lazy;
sget-object v0, Lcom/discord/app/AppActivity;->sD:Landroid/content/Intent;
iput-object v0, p0, Lcom/discord/app/AppActivity;->sC:Landroid/content/Intent;
return-void
:pswitch_data_0
.packed-switch 0x1
:pswitch_2
:pswitch_1
:pswitch_0
.end packed-switch
.end method
.method public static final synthetic a(Lcom/discord/app/AppActivity;)Lcom/discord/stores/StoreUserSettings;
.locals 0
invoke-direct {p0}, Lcom/discord/app/AppActivity;->getUserSettings()Lcom/discord/stores/StoreUserSettings;
move-result-object p0
return-object p0
.end method
.method private final a(Landroid/content/Intent;)V
.locals 1
move-object v0, p0
check-cast v0, Landroid/content/Context;
invoke-static {p1, v0}, Lcom/discord/utilities/intent/IntentUtils;->consumeExternalRoutingIntent(Landroid/content/Intent;Landroid/content/Context;)Z
move-result p1
invoke-static {}, Lcom/discord/stores/StoreStream;->getSurveys()Lcom/discord/stores/StoreSurveys;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/discord/stores/StoreSurveys;->setIntentConsumed(Z)V
return-void
.end method
.method public static final synthetic a(Lcom/discord/app/AppActivity;Landroid/content/Intent;)V
.locals 0
invoke-direct {p0, p1}, Lcom/discord/app/AppActivity;->a(Landroid/content/Intent;)V
return-void
.end method
.method public static final synthetic a(Lcom/discord/app/AppActivity;Ljava/lang/String;)V
.locals 1
sget-object v0, Lcom/discord/app/f;->tv:Lcom/discord/app/f;
invoke-static {}, Lcom/discord/app/f;->ds()Ljava/util/List;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/discord/app/AppActivity;->i(Ljava/util/List;)Z
move-result v0
if-nez v0, :cond_1
const-string v0, "light"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
const p1, 0x7f13001f
goto :goto_0
:cond_0
const-string v0, "dark"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_1
const-string v0, "pureEvil"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_1
const p1, 0x7f13001a
goto :goto_0
:cond_1
const p1, 0x7f130017
:goto_0
invoke-virtual {p0, p1}, Lcom/discord/app/AppActivity;->setTheme(I)V
return-void
.end method
.method public static final synthetic a(Lcom/discord/app/AppActivity;Lcom/discord/app/AppActivity$b;)Z
.locals 5
iget-object v0, p1, Lcom/discord/app/AppActivity$b;->sI:Ljava/lang/String;
invoke-static {v0}, Lcom/discord/models/domain/ModelUserSettings;->getLocaleObject(Ljava/lang/String;)Ljava/util/Locale;
move-result-object v0
const-string v1, "ModelUserSettings.getLoc\u2026bject(model.localeString)"
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, v0}, Lcom/discord/app/AppActivity;->a(Ljava/util/Locale;)Z
move-result v0
const/4 v1, 0x1
if-eqz v0, :cond_0
iget-object p1, p1, Lcom/discord/app/AppActivity$b;->sI:Ljava/lang/String;
invoke-direct {p0, p1, v1}, Lcom/discord/app/AppActivity;->b(Ljava/lang/String;Z)V
return v1
:cond_0
iget-object v0, p1, Lcom/discord/app/AppActivity$b;->sH:Ljava/lang/String;
sget-object v2, Lcom/discord/app/f;->tv:Lcom/discord/app/f;
invoke-static {}, Lcom/discord/app/f;->ds()Ljava/util/List;
move-result-object v2
invoke-virtual {p0, v2}, Lcom/discord/app/AppActivity;->i(Ljava/util/List;)Z
move-result v2
const/4 v3, 0x0
if-eqz v2, :cond_1
const/4 v0, 0x0
goto :goto_0
:cond_1
new-instance v2, Lcom/discord/app/AppActivity$j;
invoke-direct {v2, p0}, Lcom/discord/app/AppActivity$j;-><init>(Lcom/discord/app/AppActivity;)V
const v4, 0x7f040380
invoke-virtual {v2, v4, v1}, Lcom/discord/app/AppActivity$j;->b(IZ)Landroid/util/TypedValue;
move-result-object v2
iget-object v2, v2, Landroid/util/TypedValue;->string:Ljava/lang/CharSequence;
invoke-static {v2, v0}, Lkotlin/jvm/internal/j;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
xor-int/2addr v0, v1
:goto_0
if-nez v0, :cond_6
iget p1, p1, Lcom/discord/app/AppActivity$b;->fontScale:I
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v0
const-string v2, "font_scale"
const/high16 v4, 0x3f800000 # 1.0f
invoke-static {v0, v2, v4}, Landroid/provider/Settings$System;->getFloat(Landroid/content/ContentResolver;Ljava/lang/String;F)F
move-result v0
const/high16 v2, 0x42c80000 # 100.0f
mul-float v0, v0, v2
float-to-int v0, v0
const/4 v2, -0x1
if-ne p1, v2, :cond_2
iget v4, p0, Lcom/discord/app/AppActivity;->sy:I
if-ne v4, v0, :cond_3
:cond_2
if-eq p1, v2, :cond_4
iget p0, p0, Lcom/discord/app/AppActivity;->sy:I
if-eq p0, p1, :cond_4
:cond_3
const/4 p0, 0x1
goto :goto_1
:cond_4
const/4 p0, 0x0
:goto_1
if-eqz p0, :cond_5
goto :goto_2
:cond_5
return v3
:cond_6
:goto_2
return v1
.end method
.method private final a(Ljava/util/Locale;)Z
.locals 4
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/4 v1, 0x0
const/4 v2, 0x1
const/16 v3, 0x18
if-lt v0, v3, :cond_2
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getResources()Landroid/content/res/Resources;
move-result-object v0
const-string v3, "resources"
invoke-static {v0, v3}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
move-result-object v0
const-string v3, "resources.configuration"
invoke-static {v0, v3}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Landroid/content/res/Configuration;->getLocales()Landroid/os/LocaleList;
move-result-object v0
const-string v3, "resources.configuration.locales"
invoke-static {v0, v3}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Landroid/os/LocaleList;->isEmpty()Z
move-result v0
if-nez v0, :cond_1
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getResources()Landroid/content/res/Resources;
move-result-object v0
const-string v3, "resources"
invoke-static {v0, v3}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
move-result-object v0
const-string v3, "resources.configuration"
invoke-static {v0, v3}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Landroid/content/res/Configuration;->getLocales()Landroid/os/LocaleList;
move-result-object v0
invoke-virtual {v0, v1}, Landroid/os/LocaleList;->get(I)Ljava/util/Locale;
move-result-object v0
invoke-static {v0, p1}, Lkotlin/jvm/internal/j;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
xor-int/2addr p1, v2
if-eqz p1, :cond_0
goto :goto_0
:cond_0
return v1
:cond_1
:goto_0
return v2
:cond_2
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getResources()Landroid/content/res/Resources;
move-result-object v0
const-string v3, "resources"
invoke-static {v0, v3}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
move-result-object v0
iget-object v0, v0, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;
if-eqz v0, :cond_4
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getResources()Landroid/content/res/Resources;
move-result-object v0
const-string v3, "resources"
invoke-static {v0, v3}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
move-result-object v0
iget-object v0, v0, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;
invoke-static {v0, p1}, Lkotlin/jvm/internal/j;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
xor-int/2addr p1, v2
if-eqz p1, :cond_3
goto :goto_1
:cond_3
return v1
:cond_4
:goto_1
return v2
.end method
.method public static final synthetic b(Lcom/discord/app/AppActivity;Landroid/content/Intent;)Lcom/discord/app/i$a;
.locals 2
const/4 v0, 0x0
if-eqz p1, :cond_0
const-string v1, "transition"
invoke-virtual {p1, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;
move-result-object p1
goto :goto_0
:cond_0
move-object p1, v0
:goto_0
instance-of v1, p1, Lcom/discord/app/i$c;
if-nez v1, :cond_1
move-object p1, v0
:cond_1
check-cast p1, Lcom/discord/app/i$c;
if-eqz p1, :cond_2
move-object p0, p1
goto :goto_1
:cond_2
sget-object p1, Lcom/discord/app/f;->tv:Lcom/discord/app/f;
invoke-static {}, Lcom/discord/app/f;->dq()Ljava/util/List;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/discord/app/AppActivity;->i(Ljava/util/List;)Z
move-result p0
if-eqz p0, :cond_3
sget-object p0, Lcom/discord/app/i$c;->uB:Lcom/discord/app/i$c;
goto :goto_1
:cond_3
move-object p0, v0
:goto_1
if-eqz p0, :cond_4
iget-object p0, p0, Lcom/discord/app/i$c;->animations:Lcom/discord/app/i$a;
return-object p0
:cond_4
return-object v0
.end method
.method public static final synthetic b(Lcom/discord/app/AppActivity;Ljava/lang/String;)Ljava/lang/String;
.locals 2
check-cast p0, Landroid/content/Context;
invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object p0
const-string v0, "CACHE_KEY_DID_TRIGGER_APRIL_FOOLS_2019"
const/4 v1, 0x0
invoke-interface {p0, v0, v1}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
move-result p0
const-string v0, "light"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
if-eqz p0, :cond_0
const-string p0, "dark"
return-object p0
:cond_0
return-object p1
.end method
.method public static final synthetic b(Lcom/discord/app/AppActivity;)V
.locals 1
const/4 v0, 0x1
invoke-direct {p0, v0}, Lcom/discord/app/AppActivity;->o(Z)V
return-void
.end method
.method private final b(Ljava/lang/String;Z)V
.locals 3
invoke-static {p1}, Lcom/discord/models/domain/ModelUserSettings;->getLocaleObject(Ljava/lang/String;)Ljava/util/Locale;
move-result-object p1
const-string v0, "locale"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, p1}, Lcom/discord/app/AppActivity;->a(Ljava/util/Locale;)Z
move-result v0
if-eqz v0, :cond_1
invoke-static {p1}, Ljava/util/Locale;->setDefault(Ljava/util/Locale;)V
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x18
if-lt v0, v1, :cond_0
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getResources()Landroid/content/res/Resources;
move-result-object v0
const-string v1, "resources"
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
move-result-object v0
invoke-virtual {v0, p1}, Landroid/content/res/Configuration;->setLocale(Ljava/util/Locale;)V
goto :goto_0
:cond_0
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getResources()Landroid/content/res/Resources;
move-result-object v0
const-string v1, "resources"
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
move-result-object v0
iput-object p1, v0, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;
:goto_0
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getResources()Landroid/content/res/Resources;
move-result-object p1
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getResources()Landroid/content/res/Resources;
move-result-object v0
const-string v1, "resources"
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
move-result-object v0
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getResources()Landroid/content/res/Resources;
move-result-object v1
const-string v2, "resources"
invoke-static {v1, v2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
move-result-object v1
invoke-virtual {p1, v0, v1}, Landroid/content/res/Resources;->updateConfiguration(Landroid/content/res/Configuration;Landroid/util/DisplayMetrics;)V
if-eqz p2, :cond_1
const/4 p1, 0x1
invoke-direct {p0, p1}, Lcom/discord/app/AppActivity;->o(Z)V
:cond_1
return-void
.end method
.method public static final synthetic c(Lcom/discord/app/AppActivity;Ljava/lang/String;)V
.locals 1
const/4 v0, 0x0
invoke-direct {p0, p1, v0}, Lcom/discord/app/AppActivity;->b(Ljava/lang/String;Z)V
return-void
.end method
.method public static final synthetic dj()Z
.locals 1
sget-boolean v0, Lcom/discord/app/AppActivity;->sE:Z
return v0
.end method
.method public static final synthetic dk()V
.locals 1
const/4 v0, 0x0
sput-boolean v0, Lcom/discord/app/AppActivity;->sE:Z
return-void
.end method
.method private final getUserSettings()Lcom/discord/stores/StoreUserSettings;
.locals 1
iget-object v0, p0, Lcom/discord/app/AppActivity;->sA:Lkotlin/Lazy;
invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/discord/stores/StoreUserSettings;
return-object v0
.end method
.method private final o(Z)V
.locals 2
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getIntent()Landroid/content/Intent;
move-result-object p1
const-string v0, "transition"
sget-object v1, Lcom/discord/app/i$c;->uz:Lcom/discord/app/i$c;
check-cast v1, Ljava/io/Serializable;
invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;
move-object p1, p0
check-cast p1, Landroid/content/Context;
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getScreen()Ljava/lang/Class;
move-result-object v0
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getIntent()Landroid/content/Intent;
move-result-object v1
invoke-static {p1, v0, v1}, Lcom/discord/app/f;->a(Landroid/content/Context;Ljava/lang/Class;Landroid/content/Intent;)V
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->finish()V
return-void
.end method
# virtual methods
.method public final a(Landroidx/appcompat/widget/Toolbar;)V
.locals 2
iput-object p1, p0, Lcom/discord/app/AppActivity;->toolbar:Landroidx/appcompat/widget/Toolbar;
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->dg()Lcom/discord/views/ToolbarTitleLayout;
move-result-object p1
if-nez p1, :cond_1
iget-object p1, p0, Lcom/discord/app/AppActivity;->toolbar:Landroidx/appcompat/widget/Toolbar;
if-eqz p1, :cond_0
new-instance v0, Lcom/discord/views/ToolbarTitleLayout;
move-object v1, p0
check-cast v1, Landroid/content/Context;
invoke-direct {v0, v1}, Lcom/discord/views/ToolbarTitleLayout;-><init>(Landroid/content/Context;)V
check-cast v0, Landroid/view/View;
invoke-virtual {p1, v0}, Landroidx/appcompat/widget/Toolbar;->addView(Landroid/view/View;)V
:cond_0
iget-object p1, p0, Lcom/discord/app/AppActivity;->toolbar:Landroidx/appcompat/widget/Toolbar;
if-eqz p1, :cond_1
new-instance v0, Lcom/discord/app/AppActivity$k;
invoke-direct {v0, p0}, Lcom/discord/app/AppActivity$k;-><init>(Lcom/discord/app/AppActivity;)V
check-cast v0, Landroid/view/View$OnClickListener;
invoke-virtual {p1, v0}, Landroidx/appcompat/widget/Toolbar;->setNavigationOnClickListener(Landroid/view/View$OnClickListener;)V
return-void
:cond_1
return-void
.end method
.method public final a(Lkotlin/reflect/b;)Z
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/reflect/b<",
"+",
"Lcom/discord/app/AppComponent;",
">;)Z"
}
.end annotation
const-string v0, "screen"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p1}, Lkotlin/jvm/a;->b(Lkotlin/reflect/b;)Ljava/lang/Class;
move-result-object p1
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getScreen()Ljava/lang/Class;
move-result-object v0
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
return p1
.end method
.method protected attachBaseContext(Landroid/content/Context;)V
.locals 5
if-nez p1, :cond_0
move-object p1, p0
check-cast p1, Landroid/content/Context;
:cond_0
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
const-string v1, "oldContext.resources"
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
move-result-object v0
invoke-static {}, Lcom/discord/stores/StoreStream;->getUserSettings()Lcom/discord/stores/StoreUserSettings;
move-result-object v1
const-string v2, "StoreStream.getUserSettings()"
invoke-static {v1, v2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v1}, Lcom/discord/stores/StoreUserSettings;->getFontScale()I
move-result v1
const/4 v2, -0x1
const/high16 v3, 0x42c80000 # 100.0f
if-ne v1, v2, :cond_1
invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v1
const-string v2, "font_scale"
const/high16 v4, 0x3f800000 # 1.0f
invoke-static {v1, v2, v4}, Landroid/provider/Settings$System;->getFloat(Landroid/content/ContentResolver;Ljava/lang/String;F)F
move-result v1
goto :goto_0
:cond_1
invoke-static {}, Lcom/discord/stores/StoreStream;->getUserSettings()Lcom/discord/stores/StoreUserSettings;
move-result-object v1
const-string v2, "StoreStream.getUserSettings()"
invoke-static {v1, v2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v1}, Lcom/discord/stores/StoreUserSettings;->getFontScale()I
move-result v1
int-to-float v1, v1
div-float/2addr v1, v3
:goto_0
iput v1, v0, Landroid/content/res/Configuration;->fontScale:F
mul-float v1, v1, v3
float-to-int v1, v1
iput v1, p0, Lcom/discord/app/AppActivity;->sy:I
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x11
if-lt v1, v2, :cond_2
invoke-virtual {p1, v0}, Landroid/content/Context;->createConfigurationContext(Landroid/content/res/Configuration;)Landroid/content/Context;
move-result-object p1
const-string v0, "oldContext.createConfigurationContext(config)"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
goto :goto_1
:cond_2
new-instance v1, Landroid/util/DisplayMetrics;
invoke-direct {v1}, Landroid/util/DisplayMetrics;-><init>()V
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getWindowManager()Landroid/view/WindowManager;
move-result-object v2
if-eqz v2, :cond_3
invoke-interface {v2}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;
move-result-object v2
if-eqz v2, :cond_3
invoke-virtual {v2, v1}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V
:cond_3
iget v2, v0, Landroid/content/res/Configuration;->fontScale:F
iget v3, v1, Landroid/util/DisplayMetrics;->density:F
mul-float v2, v2, v3
iput v2, v1, Landroid/util/DisplayMetrics;->scaledDensity:F
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getBaseContext()Landroid/content/Context;
move-result-object v2
const-string v3, "baseContext"
invoke-static {v2, v3}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v2
invoke-virtual {v2, v0, v1}, Landroid/content/res/Resources;->updateConfiguration(Landroid/content/res/Configuration;Landroid/util/DisplayMetrics;)V
:goto_1
invoke-super {p0, p1}, Lcom/discord/app/c;->attachBaseContext(Landroid/content/Context;)V
return-void
.end method
.method final dg()Lcom/discord/views/ToolbarTitleLayout;
.locals 3
iget-object v0, p0, Lcom/discord/app/AppActivity;->toolbar:Landroidx/appcompat/widget/Toolbar;
const/4 v1, 0x0
if-eqz v0, :cond_0
const/4 v2, 0x0
invoke-virtual {v0, v2}, Landroidx/appcompat/widget/Toolbar;->getChildAt(I)Landroid/view/View;
move-result-object v0
goto :goto_0
:cond_0
move-object v0, v1
:goto_0
instance-of v2, v0, Lcom/discord/views/ToolbarTitleLayout;
if-nez v2, :cond_1
move-object v0, v1
:cond_1
check-cast v0, Lcom/discord/views/ToolbarTitleLayout;
return-object v0
.end method
.method public final dh()Z
.locals 2
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getMostRecentIntent()Landroid/content/Intent;
move-result-object v0
invoke-virtual {v0}, Landroid/content/Intent;->getAction()Ljava/lang/String;
move-result-object v0
const-string v1, "android.intent.action.SEND"
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
return v0
.end method
.method public final di()Z
.locals 2
:try_start_0
new-instance v0, Landroid/content/Intent;
const-string v1, "android.intent.action.MAIN"
invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
const-string v1, "android.intent.category.HOME"
invoke-virtual {v0, v1}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;
move-result-object v0
const/high16 v1, 0x10000000
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/discord/app/AppActivity;->startActivity(Landroid/content/Intent;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
const/4 v0, 0x1
goto :goto_0
:catch_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public final getMostRecentIntent()Landroid/content/Intent;
.locals 2
iget-object v0, p0, Lcom/discord/app/AppActivity;->sC:Landroid/content/Intent;
sget-object v1, Lcom/discord/app/AppActivity;->sD:Landroid/content/Intent;
if-ne v0, v1, :cond_0
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getIntent()Landroid/content/Intent;
move-result-object v0
if-nez v0, :cond_0
new-instance v0, Landroid/content/Intent;
sget-object v1, Lcom/discord/app/AppActivity;->sD:Landroid/content/Intent;
invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Intent;)V
:cond_0
return-object v0
.end method
.method public getPaused()Lrx/subjects/Subject;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lrx/subjects/Subject<",
"Ljava/lang/Void;",
"Ljava/lang/Void;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/discord/app/AppActivity;->paused:Lrx/subjects/Subject;
return-object v0
.end method
.method protected getScreen()Ljava/lang/Class;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/lang/Class<",
"+",
"Lcom/discord/app/AppComponent;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/discord/app/AppActivity;->sB:Lkotlin/Lazy;
invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Class;
return-object v0
.end method
.method public final hideKeyboard(Landroid/view/View;)V
.locals 2
move-object v0, p0
check-cast v0, Landroid/app/Activity;
const/4 v1, 0x0
invoke-static {v0, v1, p1}, Lcom/discord/utilities/keyboard/Keyboard;->setKeyboardOpen(Landroid/app/Activity;ZLandroid/view/View;)V
return-void
.end method
.method public final i(Ljava/util/List;)Z
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"+",
"Lkotlin/reflect/b<",
"+",
"Lcom/discord/app/AppComponent;",
">;>;)Z"
}
.end annotation
const-string v0, "screens"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
check-cast p1, Ljava/lang/Iterable;
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
move-object v1, v0
check-cast v1, Lkotlin/reflect/b;
invoke-static {v1}, Lkotlin/jvm/a;->b(Lkotlin/reflect/b;)Ljava/lang/Class;
move-result-object v1
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getScreen()Ljava/lang/Class;
move-result-object v2
invoke-static {v1, v2}, Lkotlin/jvm/internal/j;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
goto :goto_0
:cond_1
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_2
const/4 p1, 0x1
return p1
:cond_2
const/4 p1, 0x0
return p1
.end method
.method public onCreate(Landroid/os/Bundle;)V
.locals 4
new-instance v0, Lcom/discord/app/AppActivity$c;
invoke-direct {v0, p0}, Lcom/discord/app/AppActivity$c;-><init>(Lcom/discord/app/AppActivity;)V
new-instance v1, Lcom/discord/app/AppActivity$d;
invoke-direct {v1, p0}, Lcom/discord/app/AppActivity$d;-><init>(Lcom/discord/app/AppActivity;)V
new-instance v2, Lcom/discord/app/AppActivity$e;
invoke-direct {v2, p0}, Lcom/discord/app/AppActivity$e;-><init>(Lcom/discord/app/AppActivity;)V
new-instance v3, Lcom/discord/app/AppActivity$f;
invoke-direct {v3, p0}, Lcom/discord/app/AppActivity$f;-><init>(Lcom/discord/app/AppActivity;)V
:try_start_0
invoke-virtual {v0}, Lcom/discord/app/AppActivity$c;->invoke()V
invoke-virtual {v1}, Lcom/discord/app/AppActivity$d;->invoke()V
invoke-super {p0, p1}, Lcom/discord/app/c;->onCreate(Landroid/os/Bundle;)V
invoke-virtual {v2}, Lcom/discord/app/AppActivity$e;->invoke()V
invoke-virtual {v3}, Lcom/discord/app/AppActivity$f;->invoke()V
const-class p1, Lcom/discord/widgets/main/WidgetMain;
invoke-static {p1}, Lkotlin/jvm/internal/v;->N(Ljava/lang/Class;)Lkotlin/reflect/b;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/discord/app/AppActivity;->a(Lkotlin/reflect/b;)Z
move-result p1
if-nez p1, :cond_1
invoke-static {}, Lcom/discord/stores/StoreStream;->getAnalytics()Lcom/discord/stores/StoreAnalytics;
move-result-object p1
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getScreen()Ljava/lang/Class;
move-result-object v0
invoke-virtual {p1, v0}, Lcom/discord/stores/StoreAnalytics;->appUiViewed(Ljava/lang/Class;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception p1
const-class v0, Lcom/discord/widgets/debugging/WidgetFatalCrash;
invoke-static {v0}, Lkotlin/jvm/internal/v;->N(Ljava/lang/Class;)Lkotlin/reflect/b;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/discord/app/AppActivity;->a(Lkotlin/reflect/b;)Z
move-result v0
if-nez v0, :cond_0
sget-object v0, Lcom/discord/widgets/debugging/WidgetFatalCrash;->Companion:Lcom/discord/widgets/debugging/WidgetFatalCrash$Companion;
move-object v1, p0
check-cast v1, Landroid/content/Context;
check-cast p1, Ljava/lang/Throwable;
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getScreen()Ljava/lang/Class;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v2
const-string v3, "screen.name"
invoke-static {v2, v3}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0, v1, p1, v2}, Lcom/discord/widgets/debugging/WidgetFatalCrash$Companion;->launch(Landroid/content/Context;Ljava/lang/Throwable;Ljava/lang/String;)V
:cond_0
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->finish()V
:cond_1
return-void
.end method
.method public onDestroy()V
.locals 1
iget-object v0, p0, Lcom/discord/app/AppActivity;->sx:Ljava/util/LinkedHashMap;
invoke-virtual {v0}, Ljava/util/LinkedHashMap;->clear()V
invoke-super {p0}, Lcom/discord/app/c;->onDestroy()V
return-void
.end method
.method public onNewIntent(Landroid/content/Intent;)V
.locals 2
invoke-super {p0, p1}, Lcom/discord/app/c;->onNewIntent(Landroid/content/Intent;)V
if-nez p1, :cond_0
sget-object p1, Lcom/discord/app/AppActivity;->sD:Landroid/content/Intent;
:cond_0
iput-object p1, p0, Lcom/discord/app/AppActivity;->sC:Landroid/content/Intent;
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getMostRecentIntent()Landroid/content/Intent;
move-result-object p1
invoke-direct {p0, p1}, Lcom/discord/app/AppActivity;->a(Landroid/content/Intent;)V
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getMostRecentIntent()Landroid/content/Intent;
move-result-object p1
iget-object v0, p0, Lcom/discord/app/AppActivity;->sx:Ljava/util/LinkedHashMap;
check-cast v0, Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object v0
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_1
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/util/Map$Entry;
invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lkotlin/jvm/functions/Function1;
invoke-interface {v1, p1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_0
:cond_1
return-void
.end method
.method public onPause()V
.locals 2
invoke-super {p0}, Lcom/discord/app/c;->onPause()V
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->getPaused()Lrx/subjects/Subject;
move-result-object v0
const/4 v1, 0x0
invoke-virtual {v0, v1}, Lrx/subjects/Subject;->onNext(Ljava/lang/Object;)V
return-void
.end method
.method public onResume()V
.locals 11
invoke-super {p0}, Lcom/discord/app/c;->onResume()V
sget-object v0, Lcom/discord/app/f;->tv:Lcom/discord/app/f;
invoke-static {p0}, Lcom/discord/app/f;->c(Lcom/discord/app/AppActivity;)Z
move-result v0
if-eqz v0, :cond_0
return-void
:cond_0
invoke-direct {p0}, Lcom/discord/app/AppActivity;->getUserSettings()Lcom/discord/stores/StoreUserSettings;
move-result-object v0
const-string v1, "userSettings"
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Lcom/discord/stores/StoreUserSettings;->getLocale()Ljava/lang/String;
move-result-object v0
iget-object v1, p0, Lcom/discord/app/AppActivity;->sz:Ljava/lang/String;
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x1
xor-int/2addr v0, v1
if-eqz v0, :cond_1
iget-object v0, p0, Lcom/discord/app/AppActivity;->sz:Ljava/lang/String;
const-string v2, ""
invoke-static {v0, v2}, Lkotlin/jvm/internal/j;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
xor-int/2addr v0, v1
if-eqz v0, :cond_1
invoke-direct {p0, v1}, Lcom/discord/app/AppActivity;->o(Z)V
return-void
:cond_1
invoke-direct {p0}, Lcom/discord/app/AppActivity;->getUserSettings()Lcom/discord/stores/StoreUserSettings;
move-result-object v0
const-string v2, "userSettings"
invoke-static {v0, v2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Lcom/discord/stores/StoreUserSettings;->getLocale()Ljava/lang/String;
move-result-object v0
const-string v2, "userSettings.locale"
invoke-static {v0, v2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
iput-object v0, p0, Lcom/discord/app/AppActivity;->sz:Ljava/lang/String;
sget-object v0, Lcom/discord/app/AppActivity$b;->sJ:Lcom/discord/app/AppActivity$b$a;
invoke-static {}, Lcom/discord/stores/StoreStream;->getUserSettings()Lcom/discord/stores/StoreUserSettings;
move-result-object v0
invoke-virtual {v0, v1}, Lcom/discord/stores/StoreUserSettings;->getThemeObservable(Z)Lrx/Observable;
move-result-object v0
invoke-static {}, Lcom/discord/stores/StoreStream;->getUserSettings()Lcom/discord/stores/StoreUserSettings;
move-result-object v1
const-string v2, "StoreStream\n .getUserSettings()"
invoke-static {v1, v2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v1}, Lcom/discord/stores/StoreUserSettings;->getLocaleObservable()Lrx/Observable;
move-result-object v1
invoke-static {}, Lcom/discord/stores/StoreStream;->getUserSettings()Lcom/discord/stores/StoreUserSettings;
move-result-object v2
const-string v3, "StoreStream\n .getUserSettings()"
invoke-static {v2, v3}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v2}, Lcom/discord/stores/StoreUserSettings;->getFontScaleObs()Lrx/Observable;
move-result-object v2
sget-object v3, Lcom/discord/app/AppActivity$b$a$a;->sK:Lcom/discord/app/AppActivity$b$a$a;
check-cast v3, Lkotlin/jvm/functions/Function3;
if-eqz v3, :cond_2
new-instance v4, Lcom/discord/app/b;
invoke-direct {v4, v3}, Lcom/discord/app/b;-><init>(Lkotlin/jvm/functions/Function3;)V
move-object v3, v4
:cond_2
check-cast v3, Lrx/functions/Func3;
invoke-static {v0, v1, v2, v3}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func3;)Lrx/Observable;
move-result-object v0
const-string v1, "Observable.combineLatest\u2026Obs,\n ::Model)"
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
move-object v1, p0
check-cast v1, Lcom/discord/app/AppComponent;
invoke-static {v1}, Lcom/discord/app/h;->a(Lcom/discord/app/AppComponent;)Lrx/Observable$Transformer;
move-result-object v1
invoke-virtual {v0, v1}, Lrx/Observable;->a(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object v2
const-string v0, "Model.get()\n .com\u2026AppTransformers.ui(this))"
invoke-static {v2, v0}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v3
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
new-instance v0, Lcom/discord/app/AppActivity$g;
invoke-direct {v0, p0}, Lcom/discord/app/AppActivity$g;-><init>(Lcom/discord/app/AppActivity;)V
move-object v8, v0
check-cast v8, Lkotlin/jvm/functions/Function1;
const/16 v9, 0x1e
const/4 v10, 0x0
invoke-static/range {v2 .. v10}, 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 final setActionBarSubtitle(Ljava/lang/CharSequence;)Lkotlin/Unit;
.locals 1
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->dg()Lcom/discord/views/ToolbarTitleLayout;
move-result-object v0
if-eqz v0, :cond_0
invoke-virtual {v0, p1}, Lcom/discord/views/ToolbarTitleLayout;->setSubtitle(Ljava/lang/CharSequence;)V
sget-object p1, Lkotlin/Unit;->bdw:Lkotlin/Unit;
return-object p1
:cond_0
const/4 p1, 0x0
return-object p1
.end method
.method public final setActionBarTitle(Ljava/lang/CharSequence;)Lkotlin/Unit;
.locals 1
invoke-virtual {p0}, Lcom/discord/app/AppActivity;->dg()Lcom/discord/views/ToolbarTitleLayout;
move-result-object v0
if-eqz v0, :cond_0
invoke-virtual {v0, p1}, Lcom/discord/views/ToolbarTitleLayout;->setTitle(Ljava/lang/CharSequence;)V
sget-object p1, Lkotlin/Unit;->bdw:Lkotlin/Unit;
return-object p1
:cond_0
const/4 p1, 0x0
return-object p1
.end method
.method public final showKeyboard(Landroid/view/View;)V
.locals 2
move-object v0, p0
check-cast v0, Landroid/app/Activity;
const/4 v1, 0x1
invoke-static {v0, v1, p1}, Lcom/discord/utilities/keyboard/Keyboard;->setKeyboardOpen(Landroid/app/Activity;ZLandroid/view/View;)V
return-void
.end method