apkfuckery/com.discord/smali/f/a/a/h.smali
2020-04-17 21:35:49 +02:00

337 lines
8.2 KiB
Smali

.class public final Lf/a/a/h;
.super Lcom/discord/app/AppDialog;
.source "ConnectedAccountActionsDialog.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lf/a/a/h$b;
}
.end annotation
# static fields
.field public static final synthetic g:[Lkotlin/reflect/KProperty;
.field public static final h:Lf/a/a/h$b;
# instance fields
.field public final d:Lkotlin/properties/ReadOnlyProperty;
.field public final e:Lkotlin/properties/ReadOnlyProperty;
.field public final f:Lkotlin/properties/ReadOnlyProperty;
# direct methods
.method public static constructor <clinit>()V
.locals 6
const/4 v0, 0x3
new-array v0, v0, [Lkotlin/reflect/KProperty;
new-instance v1, Ly/u/b/u;
const-class v2, Lf/a/a/h;
invoke-static {v2}, Ly/u/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
move-result-object v2
const-string v3, "dialogHeader"
const-string v4, "getDialogHeader()Landroid/widget/TextView;"
invoke-direct {v1, v2, v3, v4}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
sget-object v2, Ly/u/b/x;->a:Ly/u/b/y;
invoke-virtual {v2, v1}, Ly/u/b/y;->property1(Ly/u/b/t;)Ly/y/d;
const/4 v2, 0x0
aput-object v1, v0, v2
const/4 v1, 0x1
new-instance v2, Ly/u/b/u;
const-class v3, Lf/a/a/h;
invoke-static {v3}, Ly/u/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
move-result-object v3
const-string v4, "openInBrowserItem"
const-string v5, "getOpenInBrowserItem()Landroid/widget/TextView;"
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
sget-object v3, Ly/u/b/x;->a:Ly/u/b/y;
invoke-virtual {v3, v2}, Ly/u/b/y;->property1(Ly/u/b/t;)Ly/y/d;
aput-object v2, v0, v1
const/4 v1, 0x2
new-instance v2, Ly/u/b/u;
const-class v3, Lf/a/a/h;
invoke-static {v3}, Ly/u/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
move-result-object v3
const-string v4, "copyUsernameItem"
const-string v5, "getCopyUsernameItem()Landroid/widget/TextView;"
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
sget-object v3, Ly/u/b/x;->a:Ly/u/b/y;
invoke-virtual {v3, v2}, Ly/u/b/y;->property1(Ly/u/b/t;)Ly/y/d;
aput-object v2, v0, v1
sput-object v0, Lf/a/a/h;->g:[Lkotlin/reflect/KProperty;
new-instance v0, Lf/a/a/h$b;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lf/a/a/h$b;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Lf/a/a/h;->h:Lf/a/a/h$b;
return-void
.end method
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Lcom/discord/app/AppDialog;-><init>()V
const v0, 0x7f0a0250
invoke-static {p0, v0}, Lf/n/a/j/a;->a(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object v0
iput-object v0, p0, Lf/a/a/h;->d:Lkotlin/properties/ReadOnlyProperty;
const v0, 0x7f0a0251
invoke-static {p0, v0}, Lf/n/a/j/a;->a(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object v0
iput-object v0, p0, Lf/a/a/h;->e:Lkotlin/properties/ReadOnlyProperty;
const v0, 0x7f0a024f
invoke-static {p0, v0}, Lf/n/a/j/a;->a(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object v0
iput-object v0, p0, Lf/a/a/h;->f:Lkotlin/properties/ReadOnlyProperty;
return-void
.end method
# virtual methods
.method public getContentViewResId()I
.locals 1
const v0, 0x7f0d0025
return v0
.end method
.method public onViewBound(Landroid/view/View;)V
.locals 11
if-eqz p1, :cond_4
invoke-super {p0, p1}, Lcom/discord/app/AppDialog;->onViewBound(Landroid/view/View;)V
invoke-virtual {p0}, Lcom/discord/app/AppDialog;->getArgumentsOrDefault()Landroid/os/Bundle;
move-result-object p1
const-string v0, ""
const-string v1, "ARG_PROFILE_URL"
invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-virtual {p0}, Lcom/discord/app/AppDialog;->getArgumentsOrDefault()Landroid/os/Bundle;
move-result-object v1
const-string v2, "ARG_USERNAME"
invoke-virtual {v1, v2, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-virtual {p0}, Lcom/discord/app/AppDialog;->getArgumentsOrDefault()Landroid/os/Bundle;
move-result-object v1
const/4 v2, 0x0
const-string v3, "ARG_PLATFORM_IMAGE_RES"
invoke-virtual {v1, v3, v2}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I
move-result v5
if-eqz v5, :cond_0
iget-object v1, p0, Lf/a/a/h;->d:Lkotlin/properties/ReadOnlyProperty;
sget-object v3, Lf/a/a/h;->g:[Lkotlin/reflect/KProperty;
aget-object v3, v3, v2
invoke-interface {v1, p0, v3}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v1
move-object v4, v1
check-cast v4, Landroid/widget/TextView;
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/16 v9, 0xe
const/4 v10, 0x0
invoke-static/range {v4 .. v10}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setCompoundDrawableWithIntrinsicBounds$default(Landroid/widget/TextView;IIIIILjava/lang/Object;)V
:cond_0
iget-object v1, p0, Lf/a/a/h;->d:Lkotlin/properties/ReadOnlyProperty;
sget-object v3, Lf/a/a/h;->g:[Lkotlin/reflect/KProperty;
aget-object v3, v3, v2
invoke-interface {v1, p0, v3}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/widget/TextView;
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
iget-object v1, p0, Lf/a/a/h;->e:Lkotlin/properties/ReadOnlyProperty;
sget-object v3, Lf/a/a/h;->g:[Lkotlin/reflect/KProperty;
const/4 v4, 0x1
aget-object v3, v3, v4
invoke-interface {v1, p0, v3}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/widget/TextView;
if-eqz p1, :cond_2
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
move-result v3
if-nez v3, :cond_1
goto :goto_0
:cond_1
const/4 v3, 0x0
goto :goto_1
:cond_2
:goto_0
const/4 v3, 0x1
:goto_1
xor-int/2addr v3, v4
if-eqz v3, :cond_3
const/4 v3, 0x0
goto :goto_2
:cond_3
const/16 v3, 0x8
:goto_2
invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V
iget-object v1, p0, Lf/a/a/h;->e:Lkotlin/properties/ReadOnlyProperty;
sget-object v3, Lf/a/a/h;->g:[Lkotlin/reflect/KProperty;
aget-object v3, v3, v4
invoke-interface {v1, p0, v3}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/widget/TextView;
new-instance v3, Lf/a/a/h$a;
invoke-direct {v3, v2, p0, p1}, Lf/a/a/h$a;-><init>(ILjava/lang/Object;Ljava/lang/Object;)V
invoke-virtual {v1, v3}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
iget-object p1, p0, Lf/a/a/h;->f:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lf/a/a/h;->g:[Lkotlin/reflect/KProperty;
const/4 v2, 0x2
aget-object v1, v1, v2
invoke-interface {p1, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroid/widget/TextView;
new-instance v1, Lf/a/a/h$a;
invoke-direct {v1, v4, p0, v0}, Lf/a/a/h$a;-><init>(ILjava/lang/Object;Ljava/lang/Object;)V
invoke-virtual {p1, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
return-void
:cond_4
const-string p1, "view"
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method