2020-07-23 01:06:17 +00:00
|
|
|
.class public final Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapter$EmojiViewHolder$1;
|
2020-07-08 16:44:49 +00:00
|
|
|
.super Ljava/lang/Object;
|
2020-07-23 01:06:17 +00:00
|
|
|
.source "WidgetEmojiAdapter.kt"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lrx/functions/Action3;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
2020-07-23 01:06:17 +00:00
|
|
|
value = Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapter$EmojiViewHolder;-><init>(Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapter;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T1:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"T2:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"T3:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"Lrx/functions/Action3<",
|
|
|
|
"Landroid/view/View;",
|
|
|
|
"Ljava/lang/Integer;",
|
|
|
|
"Lcom/discord/utilities/mg_recycler/MGRecyclerDataPayload;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-07-23 01:06:17 +00:00
|
|
|
.field public final synthetic $adapter:Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapter;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
.field public final synthetic this$0:Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapter$EmojiViewHolder;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-07-23 01:06:17 +00:00
|
|
|
.method public constructor <init>(Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapter$EmojiViewHolder;Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapter;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapter$EmojiViewHolder$1;->this$0:Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapter$EmojiViewHolder;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iput-object p2, p0, Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapter$EmojiViewHolder$1;->$adapter:Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapter;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final call(Landroid/view/View;Ljava/lang/Integer;Lcom/discord/utilities/mg_recycler/MGRecyclerDataPayload;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
check-cast p3, Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapter$EmojiItem;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {p3}, Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapter$EmojiItem;->getEmoji()Lcom/discord/models/domain/emoji/Emoji;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-interface {p1}, Lcom/discord/models/domain/emoji/Emoji;->isUsable()Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {p1}, Lcom/discord/models/domain/emoji/Emoji;->isAvailable()Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
|
|
|
|
sget-object p2, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Lcom/discord/stores/StoreStream$Companion;->getEmojis()Lcom/discord/stores/StoreEmoji;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Lcom/discord/stores/StoreEmoji;->onEmojiUsed(Lcom/discord/models/domain/emoji/Emoji;)V
|
|
|
|
|
|
|
|
:cond_0
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object p2, p0, Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapter$EmojiViewHolder$1;->$adapter:Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapter;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-static {p2}, Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapter;->access$getOnEmojiSelectedListener$p(Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapter;)Lcom/discord/widgets/chat/input/emoji/OnEmojiSelectedListener;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-interface {p2, p1}, Lcom/discord/widgets/chat/input/emoji/OnEmojiSelectedListener;->onEmojiSelected(Lcom/discord/models/domain/emoji/Emoji;)V
|
|
|
|
|
|
|
|
:try_start_0
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapter$EmojiViewHolder$1;->this$0:Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapter$EmojiViewHolder;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-static {p1}, Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapter$EmojiViewHolder;->access$getDraweeView$p(Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapter$EmojiViewHolder;)Lcom/facebook/drawee/view/SimpleDraweeView;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const/4 p2, 0x3
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/ImageView;->performHapticFeedback(I)Z
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
2020-09-09 19:21:20 +00:00
|
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const-string p2, "null cannot be cast to non-null type com.discord.widgets.chat.input.emoji.WidgetEmojiAdapter.EmojiItem"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public bridge synthetic call(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
check-cast p1, Landroid/view/View;
|
|
|
|
|
|
|
|
check-cast p2, Ljava/lang/Integer;
|
|
|
|
|
|
|
|
check-cast p3, Lcom/discord/utilities/mg_recycler/MGRecyclerDataPayload;
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {p0, p1, p2, p3}, Lcom/discord/widgets/chat/input/emoji/WidgetEmojiAdapter$EmojiViewHolder$1;->call(Landroid/view/View;Ljava/lang/Integer;Lcom/discord/utilities/mg_recycler/MGRecyclerDataPayload;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|