106 lines
3.5 KiB
Smali
106 lines
3.5 KiB
Smali
.class public final Lcom/discord/widgets/auth/WidgetAuthBirthday$onViewBoundOrOnResume$1;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetAuthBirthday.kt"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/View$OnClickListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/auth/WidgetAuthBirthday;->onViewBoundOrOnResume()V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic this$0:Lcom/discord/widgets/auth/WidgetAuthBirthday;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/widgets/auth/WidgetAuthBirthday;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/auth/WidgetAuthBirthday$onViewBoundOrOnResume$1;->this$0:Lcom/discord/widgets/auth/WidgetAuthBirthday;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final onClick(Landroid/view/View;)V
|
|
.locals 7
|
|
|
|
sget-object v0, Lf/a/a/i;->j:Lf/a/a/i$a;
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/auth/WidgetAuthBirthday$onViewBoundOrOnResume$1;->this$0:Lcom/discord/widgets/auth/WidgetAuthBirthday;
|
|
|
|
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getParentFragmentManager()Landroidx/fragment/app/FragmentManager;
|
|
|
|
move-result-object v1
|
|
|
|
const-string p1, "parentFragmentManager"
|
|
|
|
invoke-static {v1, p1}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/auth/WidgetAuthBirthday$onViewBoundOrOnResume$1;->this$0:Lcom/discord/widgets/auth/WidgetAuthBirthday;
|
|
|
|
const v2, 0x7f1200c2
|
|
|
|
invoke-virtual {p1, v2}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const-string p1, "getString(R.string.age_gate_date_of_birth)"
|
|
|
|
invoke-static {v2, p1}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/auth/WidgetAuthBirthday$onViewBoundOrOnResume$1;->this$0:Lcom/discord/widgets/auth/WidgetAuthBirthday;
|
|
|
|
invoke-static {p1}, Lcom/discord/widgets/auth/WidgetAuthBirthday;->access$getBirthday(Lcom/discord/widgets/auth/WidgetAuthBirthday;)Ljava/lang/Long;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sget-object p1, Lcom/discord/utilities/birthday/BirthdayHelper;->INSTANCE:Lcom/discord/utilities/birthday/BirthdayHelper;
|
|
|
|
const/16 v3, 0x12
|
|
|
|
invoke-virtual {p1, v3}, Lcom/discord/utilities/birthday/BirthdayHelper;->subtractYearsFromToday(I)J
|
|
|
|
move-result-wide v3
|
|
|
|
:goto_0
|
|
sget-object p1, Lcom/discord/utilities/birthday/BirthdayHelper;->INSTANCE:Lcom/discord/utilities/birthday/BirthdayHelper;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/utilities/birthday/BirthdayHelper;->getMaxDateOfBirth()J
|
|
|
|
move-result-wide v5
|
|
|
|
invoke-virtual/range {v0 .. v6}, Lf/a/a/i$a;->a(Landroidx/fragment/app/FragmentManager;Ljava/lang/String;JJ)Lf/a/a/i;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Lcom/discord/widgets/auth/WidgetAuthBirthday$onViewBoundOrOnResume$1$$special$$inlined$apply$lambda$1;
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/auth/WidgetAuthBirthday$onViewBoundOrOnResume$1$$special$$inlined$apply$lambda$1;-><init>(Lcom/discord/widgets/auth/WidgetAuthBirthday$onViewBoundOrOnResume$1;)V
|
|
|
|
iput-object v0, p1, Lf/a/a/i;->d:Lkotlin/jvm/functions/Function1;
|
|
|
|
return-void
|
|
.end method
|