259 lines
6.4 KiB
Smali
259 lines
6.4 KiB
Smali
.class public final Lcom/discord/app/AppActivity$d;
|
|
.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$d;->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$d;->invoke()V
|
|
|
|
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final invoke()V
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Lcom/discord/app/AppActivity$d;->this$0:Lcom/discord/app/AppActivity;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/app/AppActivity;->e()Landroid/content/Intent;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v0, :cond_b
|
|
|
|
sget-object v3, Lcom/discord/utilities/intent/IntentUtils;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils;
|
|
|
|
invoke-virtual {v3, v1, v0}, Lcom/discord/utilities/intent/IntentUtils;->consumeExternalRoutingIntent(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
sput-boolean v0, Lcom/discord/app/AppActivity;->p:Z
|
|
|
|
iget-object v0, p0, Lcom/discord/app/AppActivity$d;->this$0:Lcom/discord/app/AppActivity;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/app/AppActivity;->e()Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/discord/app/AppActivity$d;->this$0:Lcom/discord/app/AppActivity;
|
|
|
|
if-eqz v1, :cond_a
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v3, "transition"
|
|
|
|
invoke-virtual {v0, v3}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v0, v2
|
|
|
|
:goto_0
|
|
instance-of v3, v0, Lcom/discord/app/AppTransitionActivity$Transition;
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
move-object v0, v2
|
|
|
|
:cond_1
|
|
check-cast v0, Lcom/discord/app/AppTransitionActivity$Transition;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
sget-object v0, Lf/a/b/m;->f:Lf/a/b/m;
|
|
|
|
sget-object v0, Lf/a/b/m;->c:Ljava/util/List;
|
|
|
|
invoke-virtual {v1, v0}, Lcom/discord/app/AppActivity;->k(Ljava/util/List;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
sget-object v0, Lcom/discord/app/AppTransitionActivity$Transition;->TYPE_SLIDE_HORIZONTAL:Lcom/discord/app/AppTransitionActivity$Transition;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move-object v0, v2
|
|
|
|
:goto_1
|
|
if-eqz v0, :cond_4
|
|
|
|
invoke-virtual {v0}, Lcom/discord/app/AppTransitionActivity$Transition;->getAnimations()Lcom/discord/app/AppTransitionActivity$a;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
move-object v0, v2
|
|
|
|
:goto_2
|
|
iput-object v0, v1, Lcom/discord/app/AppTransitionActivity;->d:Lcom/discord/app/AppTransitionActivity$a;
|
|
|
|
iget-object v0, p0, Lcom/discord/app/AppActivity$d;->this$0:Lcom/discord/app/AppActivity;
|
|
|
|
invoke-virtual {v0}, Landroidx/fragment/app/FragmentActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/discord/app/AppActivity$d;->this$0:Lcom/discord/app/AppActivity;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/app/AppActivity;->f()Ljava/lang/Class;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/fragment/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroidx/fragment/app/Fragment;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
const/4 v0, 0x0
|
|
|
|
:goto_3
|
|
if-eqz v0, :cond_6
|
|
|
|
return-void
|
|
|
|
:cond_6
|
|
sget-object v0, Lf/a/b/m;->f:Lf/a/b/m;
|
|
|
|
iget-object v0, p0, Lcom/discord/app/AppActivity$d;->this$0:Lcom/discord/app/AppActivity;
|
|
|
|
invoke-virtual {v0}, Landroidx/fragment/app/FragmentActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/discord/app/AppActivity$d;->this$0:Lcom/discord/app/AppActivity;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/app/AppActivity;->f()Ljava/lang/Class;
|
|
|
|
move-result-object v3
|
|
|
|
const v4, 0x1020002
|
|
|
|
if-eqz v1, :cond_9
|
|
|
|
if-eqz v3, :cond_8
|
|
|
|
if-nez v0, :cond_7
|
|
|
|
goto :goto_4
|
|
|
|
:cond_7
|
|
invoke-virtual {v0}, Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v2, "fragmentManager.beginTransaction()"
|
|
|
|
invoke-static {v0, v2}, Li0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v1, v2}, Landroidx/fragment/app/Fragment;->instantiate(Landroid/content/Context;Ljava/lang/String;)Landroidx/fragment/app/Fragment;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "Fragment.instantiate(context, screen.name)"
|
|
|
|
invoke-static {v1, v2}, Li0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v4, v1, v2}, Landroidx/fragment/app/FragmentTransaction;->replace(ILandroidx/fragment/app/Fragment;Ljava/lang/String;)Landroidx/fragment/app/FragmentTransaction;
|
|
|
|
invoke-virtual {v0}, Landroidx/fragment/app/FragmentTransaction;->commit()I
|
|
|
|
:goto_4
|
|
return-void
|
|
|
|
:cond_8
|
|
const-string v0, "screen"
|
|
|
|
invoke-static {v0}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v2
|
|
|
|
:cond_9
|
|
const-string v0, "context"
|
|
|
|
invoke-static {v0}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v2
|
|
|
|
:cond_a
|
|
throw v2
|
|
|
|
:cond_b
|
|
throw v2
|
|
.end method
|