2020-04-27 20:53:11 +00:00
|
|
|
.class public Le/a/k/e0;
|
2020-04-25 00:39:25 +00:00
|
|
|
.super Landroid/widget/LinearLayout;
|
|
|
|
.source "ReactionView.java"
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
# instance fields
|
2020-04-25 00:39:25 +00:00
|
|
|
.field public d:Lcom/discord/utilities/view/text/SimpleDraweeSpanTextView;
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
.field public e:Landroid/widget/TextSwitcher;
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
.field public f:Landroid/widget/TextView;
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
.field public g:Landroid/widget/TextView;
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
.field public h:I
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
.field public i:Ljava/lang/Long;
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
.field public j:Lcom/discord/models/domain/ModelMessageReaction;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-03-19 04:19:10 +00:00
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
|
|
.locals 1
|
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
|
2020-03-19 04:19:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
const v0, 0x7f0d00a9
|
2020-03-19 04:19:10 +00:00
|
|
|
|
|
|
|
invoke-static {p1, v0, p0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
const v0, 0x7f0a06b0
|
2020-04-10 14:32:51 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
2020-04-23 17:38:59 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
move-result-object v0
|
2020-04-23 17:38:59 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
check-cast v0, Lcom/discord/utilities/view/text/SimpleDraweeSpanTextView;
|
2020-04-23 17:38:59 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iput-object v0, p0, Le/a/k/e0;->d:Lcom/discord/utilities/view/text/SimpleDraweeSpanTextView;
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
const v0, 0x7f0a06af
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
move-result-object v0
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
check-cast v0, Landroid/widget/TextSwitcher;
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iput-object v0, p0, Le/a/k/e0;->e:Landroid/widget/TextSwitcher;
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
const v0, 0x7f0a06ad
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
2020-03-19 04:19:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
check-cast v0, Landroid/widget/TextView;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iput-object v0, p0, Le/a/k/e0;->f:Landroid/widget/TextView;
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
const v0, 0x7f0a06ae
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
2020-03-19 04:19:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
check-cast p1, Landroid/widget/TextView;
|
2020-04-10 14:32:51 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iput-object p1, p0, Le/a/k/e0;->g:Landroid/widget/TextView;
|
2020-04-23 17:38:59 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
.method private setIsMe(Z)V
|
|
|
|
.locals 1
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-virtual {p0, p1}, Landroid/widget/LinearLayout;->setActivated(Z)V
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iget-object v0, p0, Le/a/k/e0;->f:Landroid/widget/TextView;
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setActivated(Z)V
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iget-object v0, p0, Le/a/k/e0;->g:Landroid/widget/TextView;
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setActivated(Z)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
return-void
|
2019-12-06 03:29:40 +00:00
|
|
|
.end method
|
2020-01-28 00:59:01 +00:00
|
|
|
|
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
# virtual methods
|
|
|
|
.method public a(Lcom/discord/models/domain/ModelMessageReaction;J)V
|
|
|
|
.locals 5
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iget-object v0, p0, Le/a/k/e0;->i:Ljava/lang/Long;
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
const/4 v1, 0x1
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
if-eqz v0, :cond_1
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
|
2020-04-10 14:32:51 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
move-result-wide v2
|
2020-04-23 17:38:59 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
cmp-long v0, v2, p2
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
if-eqz v0, :cond_0
|
2020-03-19 04:19:10 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-04-25 00:39:25 +00:00
|
|
|
const/4 v0, 0x0
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
goto :goto_1
|
2020-03-19 04:19:10 +00:00
|
|
|
|
|
|
|
:cond_1
|
2020-04-25 00:39:25 +00:00
|
|
|
:goto_0
|
|
|
|
const/4 v0, 0x1
|
2020-04-23 17:38:59 +00:00
|
|
|
|
2020-04-24 23:41:34 +00:00
|
|
|
:goto_1
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelMessageReaction;->getCount()I
|
2020-04-23 17:38:59 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
move-result v2
|
2020-04-23 17:38:59 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iget v3, p0, Le/a/k/e0;->h:I
|
2020-04-23 17:38:59 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
if-ne v2, v3, :cond_2
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
goto :goto_4
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
:cond_2
|
|
|
|
if-eqz v0, :cond_3
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iget-object v0, p0, Le/a/k/e0;->e:Landroid/widget/TextSwitcher;
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
move-result-object v3
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-virtual {v0, v3}, Landroid/widget/TextSwitcher;->setCurrentText(Ljava/lang/CharSequence;)V
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
goto :goto_3
|
2020-03-19 04:19:10 +00:00
|
|
|
|
|
|
|
:cond_3
|
2020-04-27 20:53:11 +00:00
|
|
|
iget-object v0, p0, Le/a/k/e0;->e:Landroid/widget/TextSwitcher;
|
2020-03-19 04:19:10 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-virtual {v0}, Landroid/widget/TextSwitcher;->getContext()Landroid/content/Context;
|
2020-04-24 23:41:34 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iget v3, p0, Le/a/k/e0;->h:I
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
if-le v2, v3, :cond_4
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iget-object v3, p0, Le/a/k/e0;->e:Landroid/widget/TextSwitcher;
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
const v4, 0x7f01002a
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-virtual {v3, v0, v4}, Landroid/widget/TextSwitcher;->setInAnimation(Landroid/content/Context;I)V
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iget-object v3, p0, Le/a/k/e0;->e:Landroid/widget/TextSwitcher;
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
const v4, 0x7f01002c
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-virtual {v3, v0, v4}, Landroid/widget/TextSwitcher;->setOutAnimation(Landroid/content/Context;I)V
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
goto :goto_2
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
:cond_4
|
2020-04-27 20:53:11 +00:00
|
|
|
iget-object v3, p0, Le/a/k/e0;->e:Landroid/widget/TextSwitcher;
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
const v4, 0x7f010029
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-virtual {v3, v0, v4}, Landroid/widget/TextSwitcher;->setInAnimation(Landroid/content/Context;I)V
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iget-object v3, p0, Le/a/k/e0;->e:Landroid/widget/TextSwitcher;
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
const v4, 0x7f01002b
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-virtual {v3, v0, v4}, Landroid/widget/TextSwitcher;->setOutAnimation(Landroid/content/Context;I)V
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
:goto_2
|
2020-04-27 20:53:11 +00:00
|
|
|
iget-object v0, p0, Le/a/k/e0;->e:Landroid/widget/TextSwitcher;
|
2020-04-23 17:38:59 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
2020-04-23 17:38:59 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
move-result-object v3
|
2020-04-23 17:38:59 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-virtual {v0, v3}, Landroid/widget/TextSwitcher;->setText(Ljava/lang/CharSequence;)V
|
2020-04-23 17:38:59 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
:goto_3
|
2020-04-27 20:53:11 +00:00
|
|
|
iput v2, p0, Le/a/k/e0;->h:I
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
:goto_4
|
2020-04-27 20:53:11 +00:00
|
|
|
iget-object v0, p0, Le/a/k/e0;->j:Lcom/discord/models/domain/ModelMessageReaction;
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
if-eqz v0, :cond_5
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelMessageReaction;->getEmoji()Lcom/discord/models/domain/ModelMessageReaction$Emoji;
|
2020-04-24 23:41:34 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iget-object v2, p0, Le/a/k/e0;->j:Lcom/discord/models/domain/ModelMessageReaction;
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelMessageReaction;->getEmoji()Lcom/discord/models/domain/ModelMessageReaction$Emoji;
|
2020-04-23 17:38:59 +00:00
|
|
|
|
2020-04-23 18:39:17 +00:00
|
|
|
move-result-object v2
|
2020-04-23 17:38:59 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-virtual {v0, v2}, Lcom/discord/models/domain/ModelMessageReaction$Emoji;->equals(Ljava/lang/Object;)Z
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
move-result v0
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
if-nez v0, :cond_6
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
:cond_5
|
2020-04-27 20:53:11 +00:00
|
|
|
iget-object v0, p0, Le/a/k/e0;->d:Lcom/discord/utilities/view/text/SimpleDraweeSpanTextView;
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelMessageReaction;->getEmoji()Lcom/discord/models/domain/ModelMessageReaction$Emoji;
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
move-result-object v2
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-static {v0, v2, v1}, Lcom/discord/utilities/textprocessing/node/EmojiNode;->renderEmoji(Lcom/discord/utilities/view/text/SimpleDraweeSpanTextView;Lcom/discord/models/domain/ModelMessageReaction$Emoji;Z)V
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
:cond_6
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelMessageReaction;->isMe()Z
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
move-result v0
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-direct {p0, v0}, Le/a/k/e0;->setIsMe(Z)V
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iput-object p1, p0, Le/a/k/e0;->j:Lcom/discord/models/domain/ModelMessageReaction;
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
invoke-static {p2, p3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
move-result-object p1
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iput-object p1, p0, Le/a/k/e0;->i:Ljava/lang/Long;
|
2020-04-24 23:41:34 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
.method public getReaction()Lcom/discord/models/domain/ModelMessageReaction;
|
2020-04-24 23:41:34 +00:00
|
|
|
.locals 1
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iget-object v0, p0, Le/a/k/e0;->j:Lcom/discord/models/domain/ModelMessageReaction;
|
2020-04-24 23:41:34 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
return-object v0
|
2020-04-24 23:41:34 +00:00
|
|
|
.end method
|