169 lines
5.1 KiB
Smali
169 lines
5.1 KiB
Smali
|
.class public final Lcom/discord/widgets/servers/community/CommunityGetStartedHeaderIconView;
|
||
|
.super Landroidx/cardview/widget/CardView;
|
||
|
.source "CommunityGetStartedHeaderIconView.kt"
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public final icon:Landroid/widget/ImageView;
|
||
|
|
||
|
.field public final title:Landroid/widget/TextView;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Landroid/content/Context;)V
|
||
|
.locals 6
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
const/4 v4, 0x6
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
move-object v0, p0
|
||
|
|
||
|
move-object v1, p1
|
||
|
|
||
|
invoke-direct/range {v0 .. v5}, Lcom/discord/widgets/servers/community/CommunityGetStartedHeaderIconView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
||
|
.locals 6
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
const/4 v4, 0x4
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
move-object v0, p0
|
||
|
|
||
|
move-object v1, p1
|
||
|
|
||
|
move-object v2, p2
|
||
|
|
||
|
invoke-direct/range {v0 .. v5}, Lcom/discord/widgets/servers/community/CommunityGetStartedHeaderIconView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
||
|
.locals 1
|
||
|
|
||
|
const-string v0, "context"
|
||
|
|
||
|
invoke-static {p1, v0}, Lc0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-direct {p0, p1, p2, p3}, Landroidx/cardview/widget/CardView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
||
|
|
||
|
const p3, 0x7f0d011c
|
||
|
|
||
|
invoke-static {p1, p3, p0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
|
||
|
|
||
|
const p1, 0x7f0a0292
|
||
|
|
||
|
invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const-string p3, "findViewById(R.id.commun\u2026_get_started_header_icon)"
|
||
|
|
||
|
invoke-static {p1, p3}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
check-cast p1, Landroid/widget/ImageView;
|
||
|
|
||
|
iput-object p1, p0, Lcom/discord/widgets/servers/community/CommunityGetStartedHeaderIconView;->icon:Landroid/widget/ImageView;
|
||
|
|
||
|
const p1, 0x7f0a0293
|
||
|
|
||
|
invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const-string p3, "findViewById(R.id.commun\u2026started_header_icon_text)"
|
||
|
|
||
|
invoke-static {p1, p3}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
check-cast p1, Landroid/widget/TextView;
|
||
|
|
||
|
iput-object p1, p0, Lcom/discord/widgets/servers/community/CommunityGetStartedHeaderIconView;->title:Landroid/widget/TextView;
|
||
|
|
||
|
if-eqz p2, :cond_0
|
||
|
|
||
|
invoke-direct {p0, p2}, Lcom/discord/widgets/servers/community/CommunityGetStartedHeaderIconView;->initAttrs(Landroid/util/AttributeSet;)V
|
||
|
|
||
|
:cond_0
|
||
|
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/widgets/servers/community/CommunityGetStartedHeaderIconView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private final initAttrs(Landroid/util/AttributeSet;)V
|
||
|
.locals 3
|
||
|
|
||
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
sget-object v1, Lcom/discord/R$a;->CommunityGetStartedHeaderIconView:[I
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
invoke-virtual {v0, p1, v1, v2, v2}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {p1, v2, v2}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
invoke-virtual {p1, v1}, Landroid/content/res/TypedArray;->getText(I)Ljava/lang/CharSequence;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/widgets/servers/community/CommunityGetStartedHeaderIconView;->icon:Landroid/widget/ImageView;
|
||
|
|
||
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-static {v2, v0}, Landroidx/appcompat/content/res/AppCompatResources;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/widgets/servers/community/CommunityGetStartedHeaderIconView;->title:Landroid/widget/TextView;
|
||
|
|
||
|
invoke-virtual {p1, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|