362 lines
10 KiB
Smali
362 lines
10 KiB
Smali
.class public final Lcom/discord/views/steps/StepsView;
|
|
.super Landroid/widget/RelativeLayout;
|
|
.source "StepsView.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/views/steps/StepsView$b;,
|
|
Lcom/discord/views/steps/StepsView$d;,
|
|
Lcom/discord/views/steps/StepsView$c;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public d:Landroid/widget/Button;
|
|
|
|
.field public e:Landroid/view/View;
|
|
|
|
.field public f:Landroid/widget/Button;
|
|
|
|
.field public g:Landroid/widget/TextView;
|
|
|
|
.field public h:Lcom/discord/utilities/simple_pager/SimplePager;
|
|
|
|
.field public i:Lcom/discord/views/steps/StepsView$d;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 1
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {p1, v0}, Lc0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {p1, v0}, Lc0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {p0, p1, p2, v0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
const-string p2, "layout_inflater"
|
|
|
|
invoke-virtual {p1, p2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
check-cast p1, Landroid/view/LayoutInflater;
|
|
|
|
const p2, 0x7f0d0153
|
|
|
|
const/4 v0, 0x1
|
|
|
|
invoke-virtual {p1, p2, p0, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
const p1, 0x7f0a09ae
|
|
|
|
invoke-virtual {p0, p1}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "findViewById(R.id.steps_done)"
|
|
|
|
invoke-static {p1, p2}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p1, Landroid/widget/Button;
|
|
|
|
iput-object p1, p0, Lcom/discord/views/steps/StepsView;->d:Landroid/widget/Button;
|
|
|
|
const p1, 0x7f0a09ad
|
|
|
|
invoke-virtual {p0, p1}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "findViewById(R.id.steps_close)"
|
|
|
|
invoke-static {p1, p2}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iput-object p1, p0, Lcom/discord/views/steps/StepsView;->e:Landroid/view/View;
|
|
|
|
const p1, 0x7f0a09af
|
|
|
|
invoke-virtual {p0, p1}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "findViewById(R.id.steps_next)"
|
|
|
|
invoke-static {p1, p2}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p1, Landroid/widget/Button;
|
|
|
|
iput-object p1, p0, Lcom/discord/views/steps/StepsView;->f:Landroid/widget/Button;
|
|
|
|
const p1, 0x7f0a09ac
|
|
|
|
invoke-virtual {p0, p1}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "findViewById(R.id.steps_cancel)"
|
|
|
|
invoke-static {p1, p2}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p1, Landroid/widget/TextView;
|
|
|
|
iput-object p1, p0, Lcom/discord/views/steps/StepsView;->g:Landroid/widget/TextView;
|
|
|
|
const p1, 0x7f0a09b0
|
|
|
|
invoke-virtual {p0, p1}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "findViewById(R.id.steps_viewpager)"
|
|
|
|
invoke-static {p1, p2}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p1, Lcom/discord/utilities/simple_pager/SimplePager;
|
|
|
|
iput-object p1, p0, Lcom/discord/views/steps/StepsView;->h:Lcom/discord/utilities/simple_pager/SimplePager;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
const-string p2, "null cannot be cast to non-null type android.view.LayoutInflater"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public static final synthetic a(Lcom/discord/views/steps/StepsView;ILkotlin/jvm/functions/Function0;)V
|
|
.locals 0
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/discord/views/steps/StepsView;->b(ILkotlin/jvm/functions/Function0;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final b(ILkotlin/jvm/functions/Function0;)V
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(I",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/views/steps/StepsView;->e:Landroid/view/View;
|
|
|
|
new-instance v1, Lcom/discord/views/steps/StepsView$e;
|
|
|
|
invoke-direct {v1, p2}, Lcom/discord/views/steps/StepsView$e;-><init>(Lkotlin/jvm/functions/Function0;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
iget-object v0, p0, Lcom/discord/views/steps/StepsView;->i:Lcom/discord/views/steps/StepsView$d;
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
iget-object v0, v0, Lcom/discord/views/steps/StepsView$d;->a:Ljava/util/List;
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
iget-object v1, p0, Lcom/discord/views/steps/StepsView;->h:Lcom/discord/utilities/simple_pager/SimplePager;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/discord/views/steps/StepsView$b;
|
|
|
|
iget-boolean v2, v2, Lcom/discord/views/steps/StepsView$b;->h:Z
|
|
|
|
invoke-virtual {v1, v2}, Lcom/discord/utilities/simple_pager/SimplePager;->setScrollingEnabled(Z)V
|
|
|
|
iget-object v1, p0, Lcom/discord/views/steps/StepsView;->f:Landroid/widget/Button;
|
|
|
|
invoke-virtual {p0}, Landroid/widget/RelativeLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Lcom/discord/views/steps/StepsView$b;
|
|
|
|
iget v3, v3, Lcom/discord/views/steps/StepsView$b;->a:I
|
|
|
|
invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
iget-object v1, p0, Lcom/discord/views/steps/StepsView;->g:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {p0}, Landroid/widget/RelativeLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Lcom/discord/views/steps/StepsView$b;
|
|
|
|
iget v3, v3, Lcom/discord/views/steps/StepsView$b;->b:I
|
|
|
|
invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
iget-object v1, p0, Lcom/discord/views/steps/StepsView;->d:Landroid/widget/Button;
|
|
|
|
invoke-virtual {p0}, Landroid/widget/RelativeLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Lcom/discord/views/steps/StepsView$b;
|
|
|
|
iget v3, v3, Lcom/discord/views/steps/StepsView$b;->c:I
|
|
|
|
invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
iget-object v1, p0, Lcom/discord/views/steps/StepsView;->f:Landroid/widget/Button;
|
|
|
|
new-instance v2, Lcom/discord/views/steps/StepsView$a;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-direct {v2, v3, p1, p0, v0}, Lcom/discord/views/steps/StepsView$a;-><init>(IILjava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
iget-object v1, p0, Lcom/discord/views/steps/StepsView;->g:Landroid/widget/TextView;
|
|
|
|
new-instance v2, Lcom/discord/views/steps/StepsView$f;
|
|
|
|
invoke-direct {v2, p0, v0, p1, p2}, Lcom/discord/views/steps/StepsView$f;-><init>(Lcom/discord/views/steps/StepsView;Ljava/util/List;ILkotlin/jvm/functions/Function0;)V
|
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
iget-object v1, p0, Lcom/discord/views/steps/StepsView;->d:Landroid/widget/Button;
|
|
|
|
new-instance v2, Lcom/discord/views/steps/StepsView$a;
|
|
|
|
const/4 v4, 0x1
|
|
|
|
invoke-direct {v2, v4, p1, v0, p2}, Lcom/discord/views/steps/StepsView$a;-><init>(IILjava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
iget-object p2, p0, Lcom/discord/views/steps/StepsView;->i:Lcom/discord/views/steps/StepsView$d;
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-virtual {p2}, Lcom/discord/views/steps/StepsView$d;->getCount()I
|
|
|
|
move-result p2
|
|
|
|
sub-int/2addr p2, v4
|
|
|
|
if-ne p1, p2, :cond_0
|
|
|
|
const/4 p2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p2, 0x0
|
|
|
|
:goto_0
|
|
iget-object v1, p0, Lcom/discord/views/steps/StepsView;->f:Landroid/widget/Button;
|
|
|
|
if-nez p2, :cond_1
|
|
|
|
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;
|
|
|
|
iget-boolean p1, p1, Lcom/discord/views/steps/StepsView$b;->g:Z
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v4, 0x0
|
|
|
|
:goto_1
|
|
const/16 p1, 0x8
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/16 v0, 0x8
|
|
|
|
:goto_2
|
|
invoke-virtual {v1, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
iget-object v0, p0, Lcom/discord/views/steps/StepsView;->g:Landroid/widget/TextView;
|
|
|
|
xor-int/lit8 v1, p2, 0x1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
const/4 v1, 0x0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
const/16 v1, 0x8
|
|
|
|
:goto_3
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
iget-object v0, p0, Lcom/discord/views/steps/StepsView;->d:Landroid/widget/Button;
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
const/16 v3, 0x8
|
|
|
|
:goto_4
|
|
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:cond_5
|
|
return-void
|
|
.end method
|