144 lines
3.1 KiB
Smali
144 lines
3.1 KiB
Smali
.class public final Lcom/discord/views/steps/StepsView$d;
|
|
.super Landroidx/fragment/app/FragmentStatePagerAdapter;
|
|
.source "StepsView.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/views/steps/StepsView;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "d"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public a:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Lcom/discord/views/steps/StepsView$b;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/fragment/app/FragmentManager;)V
|
|
.locals 1
|
|
|
|
const-string v0, "fragmentManager"
|
|
|
|
invoke-static {p1, v0}, Lc0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
invoke-direct {p0, p1, v0}, Landroidx/fragment/app/FragmentStatePagerAdapter;-><init>(Landroidx/fragment/app/FragmentManager;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getCount()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/views/steps/StepsView$d;->a:Ljava/util/List;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public getItem(I)Landroidx/fragment/app/Fragment;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/views/steps/StepsView$d;->a:Ljava/util/List;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/discord/views/steps/StepsView$b;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object p1, v1
|
|
|
|
:goto_0
|
|
instance-of v0, p1, Lcom/discord/views/steps/StepsView$b$a;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
check-cast p1, Lcom/discord/views/steps/StepsView$b$a;
|
|
|
|
iget-object p1, p1, Lcom/discord/views/steps/StepsView$b$a;->i:Ljava/lang/Class;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroidx/fragment/app/Fragment;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
instance-of v0, p1, Lcom/discord/views/steps/StepsView$b$b;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
new-instance v0, Lcom/discord/views/steps/StepsView$c;
|
|
|
|
invoke-direct {v0}, Lcom/discord/views/steps/StepsView$c;-><init>()V
|
|
|
|
new-instance v2, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v2}, Landroid/os/Bundle;-><init>()V
|
|
|
|
check-cast p1, Lcom/discord/views/steps/StepsView$b$b;
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
const/4 p1, 0x0
|
|
|
|
const-string v1, "EXTRA_LAYOUT_ID"
|
|
|
|
invoke-virtual {v2, v1, p1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
invoke-virtual {v0, v2}, Landroidx/fragment/app/Fragment;->setArguments(Landroid/os/Bundle;)V
|
|
|
|
move-object p1, v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
throw v1
|
|
|
|
:cond_3
|
|
new-instance p1, Landroidx/fragment/app/Fragment;
|
|
|
|
invoke-direct {p1}, Landroidx/fragment/app/Fragment;-><init>()V
|
|
|
|
:goto_1
|
|
return-object p1
|
|
.end method
|