2019-02-04 20:08:30 +00:00
|
|
|
.class public final Lcom/discord/views/ChatActionItem;
|
|
|
|
.super Landroid/widget/RelativeLayout;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "ChatActionItem.kt"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-04-25 10:39:51 +00:00
|
|
|
.field private yp:Landroid/widget/ImageView;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
.field private yq:Lcom/discord/app/AppTextView;
|
2019-02-27 21:13:14 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
.field private yr:Lcom/discord/app/AppTextView;
|
2019-03-14 20:04:00 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
2019-02-04 20:29:01 +00:00
|
|
|
.locals 3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/views/ChatActionItem;->getContext()Landroid/content/Context;
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-object v0, p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
check-cast v0, Landroid/view/ViewGroup;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-30 08:05:33 +00:00
|
|
|
const v1, 0x7f0d0070
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-static {p1, v1, v0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-01 06:16:59 +00:00
|
|
|
const p1, 0x7f0a0162
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/views/ChatActionItem;->findViewById(I)Landroid/view/View;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
const-string v0, "findViewById(R.id.chat_action_item_text)"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
check-cast p1, Lcom/discord/app/AppTextView;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/views/ChatActionItem;->yq:Lcom/discord/app/AppTextView;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-01 06:16:59 +00:00
|
|
|
const p1, 0x7f0a0161
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/views/ChatActionItem;->findViewById(I)Landroid/view/View;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
const-string v0, "findViewById(R.id.chat_action_item_subtext)"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
check-cast p1, Lcom/discord/app/AppTextView;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/views/ChatActionItem;->yr:Lcom/discord/app/AppTextView;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-01 06:16:59 +00:00
|
|
|
const p1, 0x7f0a0160
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/views/ChatActionItem;->findViewById(I)Landroid/view/View;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
const-string v0, "findViewById(R.id.chat_action_item_image)"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
check-cast p1, Landroid/widget/ImageView;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/views/ChatActionItem;->yp:Landroid/widget/ImageView;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/views/ChatActionItem;->getContext()Landroid/content/Context;
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
sget-object v0, Lcom/discord/R$a;->ChatActionItem:[I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
const/4 v1, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-virtual {p1, p2, v0, v1, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
iget-object p2, p0, Lcom/discord/views/ChatActionItem;->yq:Lcom/discord/app/AppTextView;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-nez p2, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
const-string v0, "primaryText"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/j;->dr(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-02-04 20:29:01 +00:00
|
|
|
const/4 v0, 0x3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-virtual {p1, v0}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
new-array v2, v1, [Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-virtual {p2, v0, v2}, Lcom/discord/app/AppTextView;->g(Ljava/lang/String;[Ljava/lang/Object;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
iget-object p2, p0, Lcom/discord/views/ChatActionItem;->yr:Lcom/discord/app/AppTextView;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-nez p2, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
const-string v0, "subtext"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/j;->dr(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_1
|
2019-02-04 20:29:01 +00:00
|
|
|
const/4 v0, 0x2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-virtual {p1, v0}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
new-array v2, v1, [Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-virtual {p2, v0, v2}, Lcom/discord/app/AppTextView;->g(Ljava/lang/String;[Ljava/lang/Object;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
const/4 p2, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-18 05:08:29 +00:00
|
|
|
const v0, 0x7f0800f1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result p2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/views/ChatActionItem;->yp:Landroid/widget/ImageView;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-nez v0, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
const-string v2, "image"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/j;->dr(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_2
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-virtual {v0, p2}, Landroid/widget/ImageView;->setImageResource(I)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
const/4 p2, -0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-virtual {p1, v1, p2}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result p2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/views/ChatActionItem;->getContext()Landroid/content/Context;
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-static {v0, p2}, Landroidx/appcompat/content/res/AppCompatResources;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result-object p2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-eqz p2, :cond_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/views/ChatActionItem;->yp:Landroid/widget/ImageView;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-nez v0, :cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
const-string v1, "image"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/j;->dr(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_3
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-virtual {v0, p2}, Landroid/widget/ImageView;->setBackground(Landroid/graphics/drawable/Drawable;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_4
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|