528 lines
14 KiB
Smali
528 lines
14 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;)V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {p0, p1, v0, v1}, Lcom/discord/views/steps/StepsView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {p0, p1, p2, v0}, Lcom/discord/views/steps/StepsView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-direct {p0, p1, p2, p3}, 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, 0x7f0d0121
|
|
|
|
const/4 p3, 0x1
|
|
|
|
invoke-virtual {p1, p2, p0, p3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
const p1, 0x7f0a08da
|
|
|
|
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}, Ly/v/b/j;->checkExpressionValueIsNotNull(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, 0x7f0a08d9
|
|
|
|
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}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iput-object p1, p0, Lcom/discord/views/steps/StepsView;->e:Landroid/view/View;
|
|
|
|
const p1, 0x7f0a08db
|
|
|
|
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}, Ly/v/b/j;->checkExpressionValueIsNotNull(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, 0x7f0a08d8
|
|
|
|
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}, Ly/v/b/j;->checkExpressionValueIsNotNull(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, 0x7f0a08dc
|
|
|
|
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}, Ly/v/b/j;->checkExpressionValueIsNotNull(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, Ly/l;
|
|
|
|
const-string p2, "null cannot be cast to non-null type android.view.LayoutInflater"
|
|
|
|
invoke-direct {p1, p2}, Ly/l;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 0
|
|
|
|
and-int/lit8 p5, p4, 0x2
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
:cond_0
|
|
and-int/lit8 p4, p4, 0x4
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
const/4 p3, 0x0
|
|
|
|
:cond_1
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/discord/views/steps/StepsView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 0
|
|
|
|
and-int/lit8 p3, p3, 0x2
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
:cond_0
|
|
invoke-direct {p0, p1, p2}, Lcom/discord/views/steps/StepsView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.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;->a(ILkotlin/jvm/functions/Function0;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(I)V
|
|
.locals 1
|
|
|
|
if-ltz p1, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/discord/views/steps/StepsView;->i:Lcom/discord/views/steps/StepsView$d;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Lcom/discord/views/steps/StepsView$d;->getCount()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-ge p1, v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/discord/views/steps/StepsView;->h:Lcom/discord/utilities/simple_pager/SimplePager;
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/viewpager/widget/ViewPager;->setCurrentItem(I)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(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$f;
|
|
|
|
invoke-direct {v1, p2}, Lcom/discord/views/steps/StepsView$f;-><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$g;
|
|
|
|
invoke-direct {v2, p0, v0, p1, p2}, Lcom/discord/views/steps/StepsView$g;-><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
|
|
|
|
const/4 p1, 0x0
|
|
|
|
:cond_4
|
|
invoke-virtual {v0, p1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:cond_5
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Lcom/discord/views/steps/StepsView$d;Lkotlin/jvm/functions/Function0;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/discord/views/steps/StepsView$d;",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
iput-object p1, p0, Lcom/discord/views/steps/StepsView;->i:Lcom/discord/views/steps/StepsView$d;
|
|
|
|
iget-object p1, p0, Lcom/discord/views/steps/StepsView;->h:Lcom/discord/utilities/simple_pager/SimplePager;
|
|
|
|
iget-object v0, p0, Lcom/discord/views/steps/StepsView;->i:Lcom/discord/views/steps/StepsView$d;
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/utilities/simple_pager/SimplePager;->setAdapter(Landroidx/viewpager/widget/PagerAdapter;)V
|
|
|
|
iget-object p1, p0, Lcom/discord/views/steps/StepsView;->h:Lcom/discord/utilities/simple_pager/SimplePager;
|
|
|
|
invoke-virtual {p1}, Landroidx/viewpager/widget/ViewPager;->clearOnPageChangeListeners()V
|
|
|
|
iget-object p1, p0, Lcom/discord/views/steps/StepsView;->h:Lcom/discord/utilities/simple_pager/SimplePager;
|
|
|
|
new-instance v0, Lcom/discord/views/steps/StepsView$e;
|
|
|
|
invoke-direct {v0, p0, p2}, Lcom/discord/views/steps/StepsView$e;-><init>(Lcom/discord/views/steps/StepsView;Lkotlin/jvm/functions/Function0;)V
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/viewpager/widget/ViewPager;->addOnPageChangeListener(Landroidx/viewpager/widget/ViewPager$OnPageChangeListener;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/discord/views/steps/StepsView;->a(ILkotlin/jvm/functions/Function0;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "onClose"
|
|
|
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p1, "adapter"
|
|
|
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|