904 lines
27 KiB
Smali
904 lines
27 KiB
Smali
|
.class public final Lcom/discord/widgets/auth/WidgetAgeVerify;
|
||
|
.super Lcom/discord/app/AppFragment;
|
||
|
.source "WidgetAgeVerify.kt"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/MemberClasses;
|
||
|
value = {
|
||
|
Lcom/discord/widgets/auth/WidgetAgeVerify$Companion;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
||
|
|
||
|
.field public static final Companion:Lcom/discord/widgets/auth/WidgetAgeVerify$Companion;
|
||
|
|
||
|
.field public static final INTENT_EXTRA_NSFW_CHANNEL:Ljava/lang/String; = "INTENT_EXTRA_NSFW_CHANNEL"
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public final backToLogin$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
.field public final description$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
.field public final input$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
.field public final nextButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
.field public final underageDescription$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
.field public final viewFlipper$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
.field public viewModel:Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public static constructor <clinit>()V
|
||
|
.locals 6
|
||
|
|
||
|
const/4 v0, 0x6
|
||
|
|
||
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
||
|
|
||
|
new-instance v1, Ly/v/b/u;
|
||
|
|
||
|
const-class v2, Lcom/discord/widgets/auth/WidgetAgeVerify;
|
||
|
|
||
|
invoke-static {v2}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const-string v3, "viewFlipper"
|
||
|
|
||
|
const-string v4, "getViewFlipper()Landroid/widget/ViewFlipper;"
|
||
|
|
||
|
invoke-direct {v1, v2, v3, v4}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
sget-object v2, Ly/v/b/x;->a:Ly/v/b/y;
|
||
|
|
||
|
invoke-virtual {v2, v1}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
aput-object v1, v0, v2
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
new-instance v2, Ly/v/b/u;
|
||
|
|
||
|
const-class v3, Lcom/discord/widgets/auth/WidgetAgeVerify;
|
||
|
|
||
|
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
const-string v4, "input"
|
||
|
|
||
|
const-string v5, "getInput()Landroid/widget/EditText;"
|
||
|
|
||
|
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
|
||
|
|
||
|
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/4 v1, 0x2
|
||
|
|
||
|
new-instance v2, Ly/v/b/u;
|
||
|
|
||
|
const-class v3, Lcom/discord/widgets/auth/WidgetAgeVerify;
|
||
|
|
||
|
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
const-string v4, "nextButton"
|
||
|
|
||
|
const-string v5, "getNextButton()Lcom/discord/views/LoadingButton;"
|
||
|
|
||
|
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
|
||
|
|
||
|
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/4 v1, 0x3
|
||
|
|
||
|
new-instance v2, Ly/v/b/u;
|
||
|
|
||
|
const-class v3, Lcom/discord/widgets/auth/WidgetAgeVerify;
|
||
|
|
||
|
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
const-string v4, "description"
|
||
|
|
||
|
const-string v5, "getDescription()Landroid/widget/TextView;"
|
||
|
|
||
|
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
|
||
|
|
||
|
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/4 v1, 0x4
|
||
|
|
||
|
new-instance v2, Ly/v/b/u;
|
||
|
|
||
|
const-class v3, Lcom/discord/widgets/auth/WidgetAgeVerify;
|
||
|
|
||
|
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
const-string v4, "underageDescription"
|
||
|
|
||
|
const-string v5, "getUnderageDescription()Landroid/widget/TextView;"
|
||
|
|
||
|
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
|
||
|
|
||
|
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/4 v1, 0x5
|
||
|
|
||
|
new-instance v2, Ly/v/b/u;
|
||
|
|
||
|
const-class v3, Lcom/discord/widgets/auth/WidgetAgeVerify;
|
||
|
|
||
|
invoke-static {v3}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
const-string v4, "backToLogin"
|
||
|
|
||
|
const-string v5, "getBackToLogin()Landroid/widget/Button;"
|
||
|
|
||
|
invoke-direct {v2, v3, v4, v5}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
sget-object v3, Ly/v/b/x;->a:Ly/v/b/y;
|
||
|
|
||
|
invoke-virtual {v3, v2}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
sput-object v0, Lcom/discord/widgets/auth/WidgetAgeVerify;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
||
|
|
||
|
new-instance v0, Lcom/discord/widgets/auth/WidgetAgeVerify$Companion;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-direct {v0, v1}, Lcom/discord/widgets/auth/WidgetAgeVerify$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||
|
|
||
|
sput-object v0, Lcom/discord/widgets/auth/WidgetAgeVerify;->Companion:Lcom/discord/widgets/auth/WidgetAgeVerify$Companion;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>()V
|
||
|
.locals 1
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
||
|
|
||
|
const v0, 0x7f0a0073
|
||
|
|
||
|
invoke-static {p0, v0}, Lf/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/WidgetAgeVerify;->viewFlipper$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
const v0, 0x7f0a006b
|
||
|
|
||
|
invoke-static {p0, v0}, Lf/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/WidgetAgeVerify;->input$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
const v0, 0x7f0a006d
|
||
|
|
||
|
invoke-static {p0, v0}, Lf/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/WidgetAgeVerify;->nextButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
const v0, 0x7f0a006a
|
||
|
|
||
|
invoke-static {p0, v0}, Lf/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/WidgetAgeVerify;->description$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
const v0, 0x7f0a0070
|
||
|
|
||
|
invoke-static {p0, v0}, Lf/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/WidgetAgeVerify;->underageDescription$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
const v0, 0x7f0a006e
|
||
|
|
||
|
invoke-static {p0, v0}, Lf/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/WidgetAgeVerify;->backToLogin$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$configureUI(Lcom/discord/widgets/auth/WidgetAgeVerify;Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel$ViewState;)V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0, p1}, Lcom/discord/widgets/auth/WidgetAgeVerify;->configureUI(Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel$ViewState;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$getViewModel$p(Lcom/discord/widgets/auth/WidgetAgeVerify;)Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lcom/discord/widgets/auth/WidgetAgeVerify;->viewModel:Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel;
|
||
|
|
||
|
if-eqz p0, :cond_0
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:cond_0
|
||
|
const-string p0, "viewModel"
|
||
|
|
||
|
invoke-static {p0}, Ly/v/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
||
|
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$handleEvent(Lcom/discord/widgets/auth/WidgetAgeVerify;Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel$Event;)V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0, p1}, Lcom/discord/widgets/auth/WidgetAgeVerify;->handleEvent(Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel$Event;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$setViewModel$p(Lcom/discord/widgets/auth/WidgetAgeVerify;Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel;)V
|
||
|
.locals 0
|
||
|
|
||
|
iput-object p1, p0, Lcom/discord/widgets/auth/WidgetAgeVerify;->viewModel:Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private final configureUI(Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel$ViewState;)V
|
||
|
.locals 12
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel$ViewState;->getErrorStringId()Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetAgeVerify;->getInput()Landroid/widget/EditText;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel$ViewState;->getErrorStringId()Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-virtual {p0, v1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/widget/EditText;->setError(Ljava/lang/CharSequence;)V
|
||
|
|
||
|
:cond_0
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetAgeVerify;->getNextButton()Lcom/discord/views/LoadingButton;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel$ViewState;->isSubmitting()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lcom/discord/views/LoadingButton;->setIsLoading(Z)V
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetAgeVerify;->getNextButton()Lcom/discord/views/LoadingButton;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel$ViewState;->getDateOfBirth()Ljava/lang/Long;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
const/4 v3, 0x1
|
||
|
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
invoke-virtual {v0, v1}, Lcom/discord/views/LoadingButton;->setEnabled(Z)V
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetAgeVerify;->getViewFlipper()Landroid/widget/ViewFlipper;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel$ViewState;->getDisplayedChild()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/widget/ViewFlipper;->setDisplayedChild(I)V
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetAgeVerify;->getUnderageDescription()Landroid/widget/TextView;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
const-string v1, "requireContext()"
|
||
|
|
||
|
invoke-static {v4, v1}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const v1, 0x7f1200c9
|
||
|
|
||
|
const/4 v5, 0x2
|
||
|
|
||
|
new-array v5, v5, [Ljava/lang/Object;
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel$ViewState;->getUnderageMessage()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
if-eqz v6, :cond_2
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_2
|
||
|
const-string v6, ""
|
||
|
|
||
|
:goto_1
|
||
|
aput-object v6, v5, v2
|
||
|
|
||
|
sget-object v2, Lf/a/b/f;->a:Lf/a/b/f;
|
||
|
|
||
|
const-wide v6, 0x53d4197884L
|
||
|
|
||
|
const/4 v11, 0x0
|
||
|
|
||
|
invoke-virtual {v2, v6, v7, v11}, Lf/a/b/f;->a(JLjava/lang/String;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
aput-object v2, v5, v3
|
||
|
|
||
|
invoke-virtual {p0, v1, v5}, Landroidx/fragment/app/Fragment;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
const-string v1, "getString(\n R\u2026pDesk.AGE_GATE)\n )"
|
||
|
|
||
|
invoke-static {v5, v1}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const/4 v6, 0x0
|
||
|
|
||
|
const/4 v7, 0x0
|
||
|
|
||
|
const/4 v8, 0x0
|
||
|
|
||
|
const/16 v9, 0x1c
|
||
|
|
||
|
const/4 v10, 0x0
|
||
|
|
||
|
invoke-static/range {v4 .. v10}, Lcom/discord/utilities/textprocessing/Parsers;->parseMaskedLinks$default(Landroid/content/Context;Ljava/lang/CharSequence;Lkotlin/jvm/functions/Function3;Lkotlin/jvm/functions/Function1;Ljava/lang/Integer;ILjava/lang/Object;)Ljava/lang/CharSequence;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel$ViewState;->getDateOfBirth()Ljava/lang/Long;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
const-string v2, "Calendar.getInstance()"
|
||
|
|
||
|
invoke-static {v1, v2}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
|
||
|
|
||
|
move-result-wide v4
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_3
|
||
|
sget-object v2, Lcom/discord/utilities/birthday/BirthdayHelper;->INSTANCE:Lcom/discord/utilities/birthday/BirthdayHelper;
|
||
|
|
||
|
invoke-virtual {v2}, Lcom/discord/utilities/birthday/BirthdayHelper;->getMaxDateOfBirth()J
|
||
|
|
||
|
move-result-wide v4
|
||
|
|
||
|
:goto_2
|
||
|
invoke-virtual {v1, v4, v5}, Ljava/util/Calendar;->setTimeInMillis(J)V
|
||
|
|
||
|
if-eqz v0, :cond_4
|
||
|
|
||
|
const/4 v0, 0x3
|
||
|
|
||
|
invoke-static {v0}, Ljava/text/DateFormat;->getDateInstance(I)Ljava/text/DateFormat;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v2, "formatter"
|
||
|
|
||
|
invoke-static {v0, v2}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/util/Calendar;->getTimeZone()Ljava/util/TimeZone;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v0, v2}, Ljava/text/DateFormat;->setTimeZone(Ljava/util/TimeZone;)V
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/util/Calendar;->getTimeInMillis()J
|
||
|
|
||
|
move-result-wide v4
|
||
|
|
||
|
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v0, v2}, Ljava/text/DateFormat;->format(Ljava/lang/Object;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetAgeVerify;->getInput()Landroid/widget/EditText;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
new-instance v4, Landroid/text/SpannableStringBuilder;
|
||
|
|
||
|
invoke-direct {v4, v0}, Landroid/text/SpannableStringBuilder;-><init>(Ljava/lang/CharSequence;)V
|
||
|
|
||
|
invoke-virtual {v2, v4}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V
|
||
|
|
||
|
:cond_4
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetAgeVerify;->getInput()Landroid/widget/EditText;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
new-instance v2, Lcom/discord/widgets/auth/WidgetAgeVerify$configureUI$1;
|
||
|
|
||
|
invoke-direct {v2, p0, v1}, Lcom/discord/widgets/auth/WidgetAgeVerify$configureUI$1;-><init>(Lcom/discord/widgets/auth/WidgetAgeVerify;Ljava/util/Calendar;)V
|
||
|
|
||
|
invoke-virtual {v0, v2}, Landroid/widget/EditText;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel$ViewState;->getDisplayedChild()I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-ne p1, v3, :cond_5
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/app/AppFragment;->requireAppActivity()Lcom/discord/app/AppActivity;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/app/AppActivity;->a()V
|
||
|
|
||
|
invoke-static {p0, v11, v3, v11}, Lcom/discord/app/AppFragment;->hideKeyboard$default(Lcom/discord/app/AppFragment;Landroid/view/View;ILjava/lang/Object;)V
|
||
|
|
||
|
:cond_5
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private final getBackToLogin()Landroid/widget/Button;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/auth/WidgetAgeVerify;->backToLogin$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/auth/WidgetAgeVerify;->$$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 getDescription()Landroid/widget/TextView;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/auth/WidgetAgeVerify;->description$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/auth/WidgetAgeVerify;->$$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/TextView;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private final getInput()Landroid/widget/EditText;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/auth/WidgetAgeVerify;->input$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/auth/WidgetAgeVerify;->$$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/EditText;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private final getNextButton()Lcom/discord/views/LoadingButton;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/auth/WidgetAgeVerify;->nextButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/auth/WidgetAgeVerify;->$$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, Lcom/discord/views/LoadingButton;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private final getUnderageDescription()Landroid/widget/TextView;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/auth/WidgetAgeVerify;->underageDescription$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/auth/WidgetAgeVerify;->$$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, Landroid/widget/TextView;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method private final getViewFlipper()Landroid/widget/ViewFlipper;
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/auth/WidgetAgeVerify;->viewFlipper$delegate:Lkotlin/properties/ReadOnlyProperty;
|
||
|
|
||
|
sget-object v1, Lcom/discord/widgets/auth/WidgetAgeVerify;->$$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
|
||
|
|
||
|
.method private final handleEvent(Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel$Event;)V
|
||
|
.locals 1
|
||
|
|
||
|
sget-object v0, Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel$Event$Verified;->INSTANCE:Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel$Event$Verified;
|
||
|
|
||
|
invoke-static {p1, v0}, Ly/v/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
const p1, 0x7f1200b9
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
invoke-static {p0, p1, v0}, Lf/a/b/j;->a(Landroidx/fragment/app/Fragment;II)V
|
||
|
|
||
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireActivity()Landroidx/fragment/app/FragmentActivity;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {p1}, Landroid/app/Activity;->finish()V
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public getContentViewResId()I
|
||
|
.locals 1
|
||
|
|
||
|
const v0, 0x7f0d0133
|
||
|
|
||
|
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
|
||
|
|
||
|
new-instance p1, Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel$Factory;
|
||
|
|
||
|
invoke-direct {p1}, Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel$Factory;-><init>()V
|
||
|
|
||
|
invoke-static {p0, p1}, Landroidx/lifecycle/ViewModelProviders;->of(Landroidx/fragment/app/Fragment;Landroidx/lifecycle/ViewModelProvider$Factory;)Landroidx/lifecycle/ViewModelProvider;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const-class v1, Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel;
|
||
|
|
||
|
invoke-virtual {p1, v1}, Landroidx/lifecycle/ViewModelProvider;->get(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const-string v1, "ViewModelProviders.of(th\u2026ifyViewModel::class.java)"
|
||
|
|
||
|
invoke-static {p1, v1}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
check-cast p1, Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel;
|
||
|
|
||
|
iput-object p1, p0, Lcom/discord/widgets/auth/WidgetAgeVerify;->viewModel:Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel;
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/widgets/auth/WidgetAgeVerify;->viewModel:Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel;
|
||
|
|
||
|
const-string v1, "viewModel"
|
||
|
|
||
|
if-eqz p1, :cond_1
|
||
|
|
||
|
invoke-virtual {p1}, Lf/a/b/b0;->observeViewState()Lrx/Observable;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-static {p1, p0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->bindToComponentLifecycle(Lrx/Observable;Lcom/discord/app/AppComponent;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const-class v3, Lcom/discord/widgets/auth/WidgetAgeVerify;
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
const/4 v6, 0x0
|
||
|
|
||
|
const/4 v7, 0x0
|
||
|
|
||
|
new-instance v8, Lcom/discord/widgets/auth/WidgetAgeVerify$onViewBound$1;
|
||
|
|
||
|
invoke-direct {v8, p0}, Lcom/discord/widgets/auth/WidgetAgeVerify$onViewBound$1;-><init>(Lcom/discord/widgets/auth/WidgetAgeVerify;)V
|
||
|
|
||
|
const/16 v9, 0x1e
|
||
|
|
||
|
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
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/widgets/auth/WidgetAgeVerify;->viewModel:Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel;
|
||
|
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/widgets/auth/WidgetAgeVerifyViewModel;->observeEvents()Lrx/Observable;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-static {p1, p0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->bindToComponentLifecycle(Lrx/Observable;Lcom/discord/app/AppComponent;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-class v1, Lcom/discord/widgets/auth/WidgetAgeVerify;
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
new-instance v6, Lcom/discord/widgets/auth/WidgetAgeVerify$onViewBound$2;
|
||
|
|
||
|
invoke-direct {v6, p0}, Lcom/discord/widgets/auth/WidgetAgeVerify$onViewBound$2;-><init>(Lcom/discord/widgets/auth/WidgetAgeVerify;)V
|
||
|
|
||
|
const/16 v7, 0x1e
|
||
|
|
||
|
const/4 v8, 0x0
|
||
|
|
||
|
invoke-static/range {v0 .. v8}, 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_0
|
||
|
invoke-static {v1}, Ly/v/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
:cond_1
|
||
|
invoke-static {v1}, Ly/v/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
:cond_2
|
||
|
const-string p1, "view"
|
||
|
|
||
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public onViewBoundOrOnResume()V
|
||
|
.locals 10
|
||
|
|
||
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onViewBoundOrOnResume()V
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetAgeVerify;->getBackToLogin()Landroid/widget/Button;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
new-instance v1, Lcom/discord/widgets/auth/WidgetAgeVerify$onViewBoundOrOnResume$1;
|
||
|
|
||
|
invoke-direct {v1, p0}, Lcom/discord/widgets/auth/WidgetAgeVerify$onViewBoundOrOnResume$1;-><init>(Lcom/discord/widgets/auth/WidgetAgeVerify;)V
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/discord/app/AppFragment;->getMostRecentIntent()Landroid/content/Intent;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
const-string v2, "INTENT_EXTRA_NSFW_CHANNEL"
|
||
|
|
||
|
invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetAgeVerify;->getDescription()Landroid/widget/TextView;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
const-string v4, "requireContext()"
|
||
|
|
||
|
invoke-static {v3, v4}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
const v4, 0x7f1200c3
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const v4, 0x7f1200bb
|
||
|
|
||
|
:goto_0
|
||
|
const/4 v5, 0x1
|
||
|
|
||
|
new-array v5, v5, [Ljava/lang/Object;
|
||
|
|
||
|
sget-object v6, Lf/a/b/f;->a:Lf/a/b/f;
|
||
|
|
||
|
const-wide v7, 0x53d4197884L
|
||
|
|
||
|
const/4 v9, 0x0
|
||
|
|
||
|
invoke-virtual {v6, v7, v8, v9}, Lf/a/b/f;->a(JLjava/lang/String;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
aput-object v6, v5, v1
|
||
|
|
||
|
invoke-virtual {p0, v4, v5}, Landroidx/fragment/app/Fragment;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
const-string v1, "getString(\n i\u2026pDesk.AGE_GATE)\n )"
|
||
|
|
||
|
invoke-static {v4, v1}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
const/4 v6, 0x0
|
||
|
|
||
|
const/4 v7, 0x0
|
||
|
|
||
|
const/16 v8, 0x1c
|
||
|
|
||
|
const/4 v9, 0x0
|
||
|
|
||
|
invoke-static/range {v3 .. v9}, Lcom/discord/utilities/textprocessing/Parsers;->parseMaskedLinks$default(Landroid/content/Context;Ljava/lang/CharSequence;Lkotlin/jvm/functions/Function3;Lkotlin/jvm/functions/Function1;Ljava/lang/Integer;ILjava/lang/Object;)Ljava/lang/CharSequence;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/widgets/auth/WidgetAgeVerify;->getNextButton()Lcom/discord/views/LoadingButton;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
new-instance v2, Lcom/discord/widgets/auth/WidgetAgeVerify$onViewBoundOrOnResume$2;
|
||
|
|
||
|
invoke-direct {v2, p0, v0}, Lcom/discord/widgets/auth/WidgetAgeVerify$onViewBoundOrOnResume$2;-><init>(Lcom/discord/widgets/auth/WidgetAgeVerify;Z)V
|
||
|
|
||
|
invoke-virtual {v1, v2}, Landroid/widget/FrameLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|