apkfuckery/com.discord/smali/com/discord/views/BoxedButton.smali

412 lines
11 KiB
Smali
Raw Normal View History

2019-08-14 23:59:34 +00:00
.class public final Lcom/discord/views/BoxedButton;
.super Landroid/widget/LinearLayout;
.source "BoxedButton.kt"
# static fields
.field static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
# instance fields
2019-10-10 02:17:24 +00:00
.field private final Cn:Lkotlin/properties/ReadOnlyProperty;
2019-08-14 23:59:34 +00:00
2019-10-10 02:17:24 +00:00
.field private final Co:Lkotlin/properties/ReadOnlyProperty;
2019-08-14 23:59:34 +00:00
# direct methods
.method static constructor <clinit>()V
2019-08-30 20:04:20 +00:00
.locals 6
2019-08-14 23:59:34 +00:00
2019-08-30 20:04:20 +00:00
const-class v0, Lcom/discord/views/BoxedButton;
2019-08-14 23:59:34 +00:00
2019-08-30 20:04:20 +00:00
const/4 v1, 0x2
2019-08-14 23:59:34 +00:00
2019-08-30 20:04:20 +00:00
new-array v1, v1, [Lkotlin/reflect/KProperty;
2019-08-14 23:59:34 +00:00
2019-10-09 23:16:36 +00:00
new-instance v2, Lkotlin/jvm/internal/w;
2019-08-14 23:59:34 +00:00
2019-10-09 23:16:36 +00:00
invoke-static {v0}, Lkotlin/jvm/internal/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Lkotlin/reflect/b;
2019-08-14 23:59:34 +00:00
2019-08-30 20:04:20 +00:00
move-result-object v3
2019-08-14 23:59:34 +00:00
2019-08-30 20:04:20 +00:00
const-string v4, "textView"
2019-08-14 23:59:34 +00:00
2019-08-30 20:04:20 +00:00
const-string v5, "getTextView()Landroid/widget/TextView;"
2019-08-14 23:59:34 +00:00
2019-10-09 23:16:36 +00:00
invoke-direct {v2, v3, v4, v5}, Lkotlin/jvm/internal/w;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-08-14 23:59:34 +00:00
2019-10-09 23:16:36 +00:00
invoke-static {v2}, Lkotlin/jvm/internal/x;->property1(Lkotlin/jvm/internal/v;)Lkotlin/reflect/d;
2019-08-14 23:59:34 +00:00
2019-08-30 20:04:20 +00:00
move-result-object v2
2019-08-14 23:59:34 +00:00
2019-08-30 20:04:20 +00:00
check-cast v2, Lkotlin/reflect/KProperty;
2019-08-14 23:59:34 +00:00
2019-08-30 20:04:20 +00:00
const/4 v3, 0x0
2019-08-14 23:59:34 +00:00
2019-08-30 20:04:20 +00:00
aput-object v2, v1, v3
2019-08-14 23:59:34 +00:00
2019-10-09 23:16:36 +00:00
new-instance v2, Lkotlin/jvm/internal/w;
2019-08-14 23:59:34 +00:00
2019-10-09 23:16:36 +00:00
invoke-static {v0}, Lkotlin/jvm/internal/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Lkotlin/reflect/b;
2019-08-14 23:59:34 +00:00
2019-08-30 20:04:20 +00:00
move-result-object v0
2019-08-14 23:59:34 +00:00
const-string v3, "boxedTextView"
const-string v4, "getBoxedTextView()Landroid/widget/TextView;"
2019-10-09 23:16:36 +00:00
invoke-direct {v2, v0, v3, v4}, Lkotlin/jvm/internal/w;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-08-14 23:59:34 +00:00
2019-10-09 23:16:36 +00:00
invoke-static {v2}, Lkotlin/jvm/internal/x;->property1(Lkotlin/jvm/internal/v;)Lkotlin/reflect/d;
2019-08-14 23:59:34 +00:00
2019-08-30 20:04:20 +00:00
move-result-object v0
2019-08-14 23:59:34 +00:00
2019-08-30 20:04:20 +00:00
check-cast v0, Lkotlin/reflect/KProperty;
2019-08-14 23:59:34 +00:00
const/4 v2, 0x1
2019-08-30 20:04:20 +00:00
aput-object v0, v1, v2
2019-08-14 23:59:34 +00:00
2019-08-30 20:04:20 +00:00
sput-object v1, Lcom/discord/views/BoxedButton;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
2019-08-14 23:59:34 +00:00
return-void
.end method
.method public constructor <init>(Landroid/content/Context;)V
.locals 1
const-string v0, "context"
2019-10-09 23:16:36 +00:00
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-08-14 23:59:34 +00:00
invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V
2019-10-10 02:17:24 +00:00
const p1, 0x7f0a010f
2019-08-14 23:59:34 +00:00
invoke-static {p0, p1}, Lkotterknife/b;->d(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
2019-10-10 02:17:24 +00:00
iput-object p1, p0, Lcom/discord/views/BoxedButton;->Cn:Lkotlin/properties/ReadOnlyProperty;
2019-08-14 23:59:34 +00:00
2019-10-10 02:17:24 +00:00
const p1, 0x7f0a010e
2019-08-14 23:59:34 +00:00
invoke-static {p0, p1}, Lkotterknife/b;->d(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
2019-10-10 02:17:24 +00:00
iput-object p1, p0, Lcom/discord/views/BoxedButton;->Co:Lkotlin/properties/ReadOnlyProperty;
2019-08-14 23:59:34 +00:00
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 1
const-string v0, "context"
2019-10-09 23:16:36 +00:00
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-08-14 23:59:34 +00:00
invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
2019-10-10 02:17:24 +00:00
const p1, 0x7f0a010f
2019-08-14 23:59:34 +00:00
invoke-static {p0, p1}, Lkotterknife/b;->d(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
2019-10-10 02:17:24 +00:00
iput-object p1, p0, Lcom/discord/views/BoxedButton;->Cn:Lkotlin/properties/ReadOnlyProperty;
2019-08-14 23:59:34 +00:00
2019-10-10 02:17:24 +00:00
const p1, 0x7f0a010e
2019-08-14 23:59:34 +00:00
invoke-static {p0, p1}, Lkotterknife/b;->d(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
2019-10-10 02:17:24 +00:00
iput-object p1, p0, Lcom/discord/views/BoxedButton;->Co:Lkotlin/properties/ReadOnlyProperty;
2019-08-14 23:59:34 +00:00
invoke-direct {p0, p2}, Lcom/discord/views/BoxedButton;->a(Landroid/util/AttributeSet;)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.locals 1
const-string v0, "context"
2019-10-09 23:16:36 +00:00
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-08-14 23:59:34 +00:00
invoke-direct {p0, p1, p2, p3}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
2019-10-10 02:17:24 +00:00
const p1, 0x7f0a010f
2019-08-14 23:59:34 +00:00
invoke-static {p0, p1}, Lkotterknife/b;->d(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
2019-10-10 02:17:24 +00:00
iput-object p1, p0, Lcom/discord/views/BoxedButton;->Cn:Lkotlin/properties/ReadOnlyProperty;
2019-08-14 23:59:34 +00:00
2019-10-10 02:17:24 +00:00
const p1, 0x7f0a010e
2019-08-14 23:59:34 +00:00
invoke-static {p0, p1}, Lkotterknife/b;->d(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
2019-10-10 02:17:24 +00:00
iput-object p1, p0, Lcom/discord/views/BoxedButton;->Co:Lkotlin/properties/ReadOnlyProperty;
2019-08-14 23:59:34 +00:00
invoke-direct {p0, p2}, Lcom/discord/views/BoxedButton;->a(Landroid/util/AttributeSet;)V
return-void
.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/BoxedButton;-><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/BoxedButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-void
.end method
.method private final a(Landroid/util/AttributeSet;)V
.locals 4
invoke-virtual {p0}, Lcom/discord/views/BoxedButton;->getContext()Landroid/content/Context;
move-result-object v0
move-object v1, p0
check-cast v1, Landroid/view/ViewGroup;
2019-10-10 02:17:24 +00:00
const v2, 0x7f0d0074
2019-08-14 23:59:34 +00:00
invoke-static {v0, v2, v1}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
const/16 v0, 0x10
invoke-virtual {p0, v0}, Lcom/discord/views/BoxedButton;->setVerticalGravity(I)V
const/4 v0, 0x1
invoke-virtual {p0, v0}, Lcom/discord/views/BoxedButton;->setClickable(Z)V
if-eqz p1, :cond_1
invoke-virtual {p0}, Lcom/discord/views/BoxedButton;->getContext()Landroid/content/Context;
move-result-object v1
sget-object v2, Lcom/discord/R$a;->BoxedButton:[I
const/4 v3, 0x0
invoke-virtual {v1, p1, v2, v3, v3}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
move-result-object p1
:try_start_0
invoke-virtual {p1, v0}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
move-result-object v0
invoke-virtual {p1, v3}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {p0, v0}, Lcom/discord/views/BoxedButton;->setText(Ljava/lang/String;)V
invoke-virtual {p0, v1}, Lcom/discord/views/BoxedButton;->setBoxedText(Ljava/lang/String;)V
const/4 v0, 0x2
invoke-virtual {p1, v0}, Landroid/content/res/TypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
move-result-object v0
if-eqz v0, :cond_0
invoke-direct {p0}, Lcom/discord/views/BoxedButton;->getTextView()Landroid/widget/TextView;
move-result-object v1
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V
invoke-direct {p0}, Lcom/discord/views/BoxedButton;->getBoxedTextView()Landroid/widget/TextView;
move-result-object v1
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V
2019-10-10 02:17:24 +00:00
sget-object v0, Lkotlin/Unit;->bgt:Lkotlin/Unit;
2019-08-14 23:59:34 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:cond_0
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
return-void
:catchall_0
move-exception v0
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
throw v0
:cond_1
return-void
.end method
.method private final getBoxedTextView()Landroid/widget/TextView;
.locals 3
2019-10-10 02:17:24 +00:00
iget-object v0, p0, Lcom/discord/views/BoxedButton;->Co:Lkotlin/properties/ReadOnlyProperty;
2019-08-14 23:59:34 +00:00
sget-object v1, Lcom/discord/views/BoxedButton;->$$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/TextView;
return-object v0
.end method
.method private final getTextView()Landroid/widget/TextView;
.locals 3
2019-10-10 02:17:24 +00:00
iget-object v0, p0, Lcom/discord/views/BoxedButton;->Cn:Lkotlin/properties/ReadOnlyProperty;
2019-08-14 23:59:34 +00:00
sget-object v1, Lcom/discord/views/BoxedButton;->$$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/TextView;
return-object v0
.end method
# virtual methods
.method public final setBoxedText(Ljava/lang/String;)V
.locals 2
invoke-direct {p0}, Lcom/discord/views/BoxedButton;->getBoxedTextView()Landroid/widget/TextView;
move-result-object v0
check-cast p1, Ljava/lang/CharSequence;
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
invoke-direct {p0}, Lcom/discord/views/BoxedButton;->getBoxedTextView()Landroid/widget/TextView;
move-result-object v0
const/4 v1, 0x0
if-eqz p1, :cond_1
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
move-result p1
if-nez p1, :cond_0
goto :goto_0
:cond_0
const/4 p1, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 p1, 0x1
:goto_1
if-eqz p1, :cond_2
const/16 v1, 0x8
:cond_2
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
return-void
.end method
.method public final setEnabled(Z)V
.locals 1
invoke-super {p0, p1}, Landroid/widget/LinearLayout;->setEnabled(Z)V
invoke-direct {p0}, Lcom/discord/views/BoxedButton;->getTextView()Landroid/widget/TextView;
move-result-object v0
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setEnabled(Z)V
invoke-direct {p0}, Lcom/discord/views/BoxedButton;->getBoxedTextView()Landroid/widget/TextView;
move-result-object v0
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setEnabled(Z)V
return-void
.end method
.method public final setText(Ljava/lang/String;)V
.locals 1
invoke-direct {p0}, Lcom/discord/views/BoxedButton;->getTextView()Landroid/widget/TextView;
move-result-object v0
check-cast p1, Ljava/lang/CharSequence;
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
return-void
.end method