696 lines
21 KiB
Smali
696 lines
21 KiB
Smali
.class public final Lcom/discord/widgets/auth/WidgetRemoteAuth;
|
|
.super Lcom/discord/app/AppFragment;
|
|
.source "WidgetRemoteAuth.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/widgets/auth/WidgetRemoteAuth$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
.field public static final Companion:Lcom/discord/widgets/auth/WidgetRemoteAuth$Companion;
|
|
|
|
.field public static final EXTRA_REMOTE_AUTH_FINGERPRINT:Ljava/lang/String; = "REMOTE_AUTH_FINGERPRINT"
|
|
|
|
.field public static final VIEW_LOADED:I = 0x0
|
|
|
|
.field public static final VIEW_LOADING:I = 0x2
|
|
|
|
.field public static final VIEW_NOT_FOUND:I = 0x1
|
|
|
|
.field public static final VIEW_SUCCEEDED:I = 0x3
|
|
|
|
|
|
# instance fields
|
|
.field public final authFinishButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final cancelButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final loginButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final notFoundCancelButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final temporarySwitch$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final viewFlipper$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public viewModel:LWidgetRemoteAuthViewModel;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 6
|
|
|
|
const/4 v0, 0x6
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v1, Lx/u/b/u;
|
|
|
|
const-class v2, Lcom/discord/widgets/auth/WidgetRemoteAuth;
|
|
|
|
invoke-static {v2}, Lx/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lx/y/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "viewFlipper"
|
|
|
|
const-string v4, "getViewFlipper()Landroid/widget/ViewFlipper;"
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lx/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v2, Lx/u/b/w;->a:Lx/u/b/x;
|
|
|
|
invoke-virtual {v2, v1}, Lx/u/b/x;->property1(Lx/u/b/t;)Lx/y/d;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
const/4 v1, 0x1
|
|
|
|
new-instance v2, Lx/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/auth/WidgetRemoteAuth;
|
|
|
|
invoke-static {v3}, Lx/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lx/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "cancelButton"
|
|
|
|
const-string v5, "getCancelButton()Landroid/widget/Button;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Lx/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Lx/u/b/w;->a:Lx/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Lx/u/b/x;->property1(Lx/u/b/t;)Lx/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x2
|
|
|
|
new-instance v2, Lx/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/auth/WidgetRemoteAuth;
|
|
|
|
invoke-static {v3}, Lx/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lx/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "notFoundCancelButton"
|
|
|
|
const-string v5, "getNotFoundCancelButton()Landroid/widget/Button;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Lx/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Lx/u/b/w;->a:Lx/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Lx/u/b/x;->property1(Lx/u/b/t;)Lx/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x3
|
|
|
|
new-instance v2, Lx/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/auth/WidgetRemoteAuth;
|
|
|
|
invoke-static {v3}, Lx/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lx/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "loginButton"
|
|
|
|
const-string v5, "getLoginButton()Landroid/widget/Button;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Lx/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Lx/u/b/w;->a:Lx/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Lx/u/b/x;->property1(Lx/u/b/t;)Lx/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x4
|
|
|
|
new-instance v2, Lx/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/auth/WidgetRemoteAuth;
|
|
|
|
invoke-static {v3}, Lx/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lx/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "temporarySwitch"
|
|
|
|
const-string v5, "getTemporarySwitch()Landroidx/appcompat/widget/SwitchCompat;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Lx/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Lx/u/b/w;->a:Lx/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Lx/u/b/x;->property1(Lx/u/b/t;)Lx/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x5
|
|
|
|
new-instance v2, Lx/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/auth/WidgetRemoteAuth;
|
|
|
|
invoke-static {v3}, Lx/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lx/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "authFinishButton"
|
|
|
|
const-string v5, "getAuthFinishButton()Landroid/widget/Button;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Lx/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Lx/u/b/w;->a:Lx/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Lx/u/b/x;->property1(Lx/u/b/t;)Lx/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
sput-object v0, Lcom/discord/widgets/auth/WidgetRemoteAuth;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v0, Lcom/discord/widgets/auth/WidgetRemoteAuth$Companion;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/auth/WidgetRemoteAuth$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lcom/discord/widgets/auth/WidgetRemoteAuth;->Companion:Lcom/discord/widgets/auth/WidgetRemoteAuth$Companion;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
|
|
|
const v0, 0x7f0a06d9
|
|
|
|
invoke-static {p0, v0}, Le/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/auth/WidgetRemoteAuth;->viewFlipper$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a06d4
|
|
|
|
invoke-static {p0, v0}, Le/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/auth/WidgetRemoteAuth;->cancelButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a06d7
|
|
|
|
invoke-static {p0, v0}, Le/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/auth/WidgetRemoteAuth;->notFoundCancelButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a06d6
|
|
|
|
invoke-static {p0, v0}, Le/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/auth/WidgetRemoteAuth;->loginButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a06d8
|
|
|
|
invoke-static {p0, v0}, Le/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/auth/WidgetRemoteAuth;->temporarySwitch$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a06d5
|
|
|
|
invoke-static {p0, v0}, Le/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/auth/WidgetRemoteAuth;->authFinishButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$configureUI(Lcom/discord/widgets/auth/WidgetRemoteAuth;LWidgetRemoteAuthViewModel$ViewState;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/auth/WidgetRemoteAuth;->configureUI(LWidgetRemoteAuthViewModel$ViewState;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$getViewModel$p(Lcom/discord/widgets/auth/WidgetRemoteAuth;)LWidgetRemoteAuthViewModel;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/auth/WidgetRemoteAuth;->viewModel:LWidgetRemoteAuthViewModel;
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const-string p0, "viewModel"
|
|
|
|
invoke-static {p0}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$setViewModel$p(Lcom/discord/widgets/auth/WidgetRemoteAuth;LWidgetRemoteAuthViewModel;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/auth/WidgetRemoteAuth;->viewModel:LWidgetRemoteAuthViewModel;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final configureUI(LWidgetRemoteAuthViewModel$ViewState;)V
|
|
.locals 3
|
|
|
|
sget-object v0, LWidgetRemoteAuthViewModel$ViewState$c;->a:LWidgetRemoteAuthViewModel$ViewState$c;
|
|
|
|
invoke-static {p1, v0}, Lx/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetRemoteAuth;->getViewFlipper()Landroid/widget/ViewFlipper;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v0, 0x2
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/ViewFlipper;->setDisplayedChild(I)V
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_0
|
|
sget-object v0, LWidgetRemoteAuthViewModel$ViewState$a;->a:LWidgetRemoteAuthViewModel$ViewState$a;
|
|
|
|
invoke-static {p1, v0}, Lx/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetRemoteAuth;->getViewFlipper()Landroid/widget/ViewFlipper;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, v1}, Landroid/widget/ViewFlipper;->setDisplayedChild(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetRemoteAuth;->getNotFoundCancelButton()Landroid/widget/Button;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Lcom/discord/widgets/auth/WidgetRemoteAuth$configureUI$1;
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/auth/WidgetRemoteAuth$configureUI$1;-><init>(Lcom/discord/widgets/auth/WidgetRemoteAuth;)V
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
sget-object v0, LWidgetRemoteAuthViewModel$ViewState$d;->a:LWidgetRemoteAuthViewModel$ViewState$d;
|
|
|
|
invoke-static {p1, v0}, Lx/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetRemoteAuth;->getViewFlipper()Landroid/widget/ViewFlipper;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v0, 0x3
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/ViewFlipper;->setDisplayedChild(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetRemoteAuth;->getAuthFinishButton()Landroid/widget/Button;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Lcom/discord/widgets/auth/WidgetRemoteAuth$configureUI$2;
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/auth/WidgetRemoteAuth$configureUI$2;-><init>(Lcom/discord/widgets/auth/WidgetRemoteAuth;)V
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
instance-of v0, p1, LWidgetRemoteAuthViewModel$ViewState$b;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetRemoteAuth;->getViewFlipper()Landroid/widget/ViewFlipper;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v2}, Landroid/widget/ViewFlipper;->setDisplayedChild(I)V
|
|
|
|
check-cast p1, LWidgetRemoteAuthViewModel$ViewState$b;
|
|
|
|
iget-boolean v0, p1, LWidgetRemoteAuthViewModel$ViewState$b;->c:Z
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetRemoteAuth;->getLoginButton()Landroid/widget/Button;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/Button;->setEnabled(Z)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetRemoteAuth;->getLoginButton()Landroid/widget/Button;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v2, Lcom/discord/widgets/auth/WidgetRemoteAuth$configureUI$3;
|
|
|
|
invoke-direct {v2, p0}, Lcom/discord/widgets/auth/WidgetRemoteAuth$configureUI$3;-><init>(Lcom/discord/widgets/auth/WidgetRemoteAuth;)V
|
|
|
|
invoke-virtual {v0, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetRemoteAuth;->getLoginButton()Landroid/widget/Button;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, v2}, Landroid/widget/Button;->setEnabled(Z)V
|
|
|
|
:goto_0
|
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetRemoteAuth;->getCancelButton()Landroid/widget/Button;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v2, Lcom/discord/widgets/auth/WidgetRemoteAuth$configureUI$4;
|
|
|
|
invoke-direct {v2, p0}, Lcom/discord/widgets/auth/WidgetRemoteAuth$configureUI$4;-><init>(Lcom/discord/widgets/auth/WidgetRemoteAuth;)V
|
|
|
|
invoke-virtual {v0, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetRemoteAuth;->getTemporarySwitch()Landroidx/appcompat/widget/SwitchCompat;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v2}, Landroid/widget/CompoundButton;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetRemoteAuth;->getTemporarySwitch()Landroidx/appcompat/widget/SwitchCompat;
|
|
|
|
move-result-object v0
|
|
|
|
iget-boolean p1, p1, LWidgetRemoteAuthViewModel$ViewState$b;->b:Z
|
|
|
|
xor-int/2addr p1, v1
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/SwitchCompat;->setChecked(Z)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetRemoteAuth;->getTemporarySwitch()Landroidx/appcompat/widget/SwitchCompat;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Lcom/discord/widgets/auth/WidgetRemoteAuth$configureUI$5;
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/auth/WidgetRemoteAuth$configureUI$5;-><init>(Lcom/discord/widgets/auth/WidgetRemoteAuth;)V
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/CompoundButton;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V
|
|
|
|
:cond_4
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method private final getAuthFinishButton()Landroid/widget/Button;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/auth/WidgetRemoteAuth;->authFinishButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/auth/WidgetRemoteAuth;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x5
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/Button;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getCancelButton()Landroid/widget/Button;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/auth/WidgetRemoteAuth;->cancelButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/auth/WidgetRemoteAuth;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/Button;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getLoginButton()Landroid/widget/Button;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/auth/WidgetRemoteAuth;->loginButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/auth/WidgetRemoteAuth;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x3
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/Button;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getNotFoundCancelButton()Landroid/widget/Button;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/auth/WidgetRemoteAuth;->notFoundCancelButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/auth/WidgetRemoteAuth;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x2
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/Button;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getTemporarySwitch()Landroidx/appcompat/widget/SwitchCompat;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/auth/WidgetRemoteAuth;->temporarySwitch$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/auth/WidgetRemoteAuth;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x4
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/appcompat/widget/SwitchCompat;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getViewFlipper()Landroid/widget/ViewFlipper;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/auth/WidgetRemoteAuth;->viewFlipper$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/auth/WidgetRemoteAuth;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/ViewFlipper;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getContentViewResId()I
|
|
.locals 1
|
|
|
|
const v0, 0x7f0d01fb
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public onViewBound(Landroid/view/View;)V
|
|
.locals 11
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
|
|
|
|
invoke-virtual {p0}, Lcom/discord/app/AppFragment;->getMostRecentIntent()Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v1, "REMOTE_AUTH_FINGERPRINT"
|
|
|
|
invoke-virtual {p1, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string p1, ""
|
|
|
|
:goto_0
|
|
new-instance v1, Landroidx/lifecycle/ViewModelProvider;
|
|
|
|
new-instance v2, LWidgetRemoteAuthViewModel$c;
|
|
|
|
invoke-direct {v2, p1}, LWidgetRemoteAuthViewModel$c;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-direct {v1, p0, v2}, Landroidx/lifecycle/ViewModelProvider;-><init>(Landroidx/lifecycle/ViewModelStoreOwner;Landroidx/lifecycle/ViewModelProvider$Factory;)V
|
|
|
|
const-class p1, LWidgetRemoteAuthViewModel;
|
|
|
|
invoke-virtual {v1, p1}, Landroidx/lifecycle/ViewModelProvider;->get(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v1, "ViewModelProvider(\n \u2026uthViewModel::class.java)"
|
|
|
|
invoke-static {p1, v1}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p1, LWidgetRemoteAuthViewModel;
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/auth/WidgetRemoteAuth;->viewModel:LWidgetRemoteAuthViewModel;
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/auth/WidgetRemoteAuth;->viewModel:LWidgetRemoteAuthViewModel;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-virtual {p1}, Le/a/b/b0;->observeViewState()Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lrx/Observable;->a()Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v1, "viewModel\n .obser\u2026 .distinctUntilChanged()"
|
|
|
|
invoke-static {p1, v1}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v1, 0x2
|
|
|
|
invoke-static {p1, p0, v0, v1, v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui$default(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;ILjava/lang/Object;)Lrx/Observable;
|
|
|
|
move-result-object v2
|
|
|
|
const-class v3, Lcom/discord/widgets/auth/WidgetRemoteAuth;
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v4
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
new-instance v8, Lcom/discord/widgets/auth/WidgetRemoteAuth$onViewBound$1;
|
|
|
|
invoke-direct {v8, p0}, Lcom/discord/widgets/auth/WidgetRemoteAuth$onViewBound$1;-><init>(Lcom/discord/widgets/auth/WidgetRemoteAuth;)V
|
|
|
|
const/16 v9, 0x1c
|
|
|
|
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
|
|
|
|
:cond_1
|
|
const-string p1, "viewModel"
|
|
|
|
invoke-static {p1}, Lx/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
const-string p1, "view"
|
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|