2020-09-14 18:37:20 +00:00
|
|
|
.class public final Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;
|
2020-07-08 16:44:49 +00:00
|
|
|
.super Lcom/discord/widgets/chat/list/WidgetChatListItem;
|
2020-09-14 18:37:20 +00:00
|
|
|
.source "WidgetChatListAdapterItemStickerPng.kt"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-09-10 21:23:57 +00:00
|
|
|
.field public final loadingSpinner$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.field public final pngView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
.field public subscription:Lrx/Subscription;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 5
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
const-class v0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
const/4 v1, 0x2
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
new-array v1, v1, [Lkotlin/reflect/KProperty;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
const-string v2, "loadingSpinner"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
const-string v3, "getLoadingSpinner()Landroid/view/View;"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
const/4 v4, 0x0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
invoke-static {v0, v2, v3, v4}, Lf/e/b/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lk0/n/c/r;
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
aput-object v2, v1, v4
|
|
|
|
|
|
|
|
const-string v2, "pngView"
|
|
|
|
|
|
|
|
const-string v3, "getPngView()Landroid/widget/ImageView;"
|
|
|
|
|
|
|
|
invoke-static {v0, v2, v3, v4}, Lf/e/b/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lk0/n/c/r;
|
|
|
|
|
|
|
|
move-result-object v0
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
const/4 v2, 0x1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
aput-object v0, v1, v2
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
sput-object v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Lcom/discord/widgets/chat/list/WidgetChatListAdapter;)V
|
|
|
|
.locals 1
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
const-string v0, "adapter"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
const v0, 0x7f0d01a7
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-direct {p0, v0, p1}, Lcom/discord/widgets/chat/list/WidgetChatListItem;-><init>(ILcom/discord/widgets/chat/list/WidgetChatListAdapter;)V
|
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
const p1, 0x7f0a0233
|
|
|
|
|
|
|
|
invoke-static {p0, p1}, Lk0/j/a;->j(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->loadingSpinner$delegate:Lkotlin/properties/ReadOnlyProperty;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
const p1, 0x7f0a0232
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-static {p0, p1}, Lk0/j/a;->j(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->pngView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
.method public static final synthetic access$configureUI(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;Lcom/discord/widgets/chat/list/model/WidgetChatListStickerModel;)V
|
2020-09-10 21:23:57 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->configureUI(Lcom/discord/widgets/chat/list/model/WidgetChatListStickerModel;)V
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
.method public static final synthetic access$getPngView$p(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;)Landroid/widget/ImageView;
|
2020-09-10 21:23:57 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->getPngView()Landroid/widget/ImageView;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
.method public static final synthetic access$getSubscription$p(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;)Lrx/Subscription;
|
2020-09-10 21:23:57 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
iget-object p0, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->subscription:Lrx/Subscription;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
.method public static final synthetic access$setSubscription$p(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;Lrx/Subscription;)V
|
2020-09-10 21:23:57 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->subscription:Lrx/Subscription;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final configureUI(Lcom/discord/widgets/chat/list/model/WidgetChatListStickerModel;)V
|
|
|
|
.locals 9
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/chat/list/model/WidgetChatListStickerModel;->component1()Lcom/discord/utilities/file/DownloadUtils$DownloadState;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/chat/list/model/WidgetChatListStickerModel;->component2()I
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
move-result v1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/chat/list/model/WidgetChatListStickerModel;->component3()Lcom/discord/models/sticker/dto/ModelSticker;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
instance-of v2, v0, Lcom/discord/utilities/file/DownloadUtils$DownloadState$Completed;
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->getPngView()Landroid/widget/ImageView;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
const/16 v4, 0x8
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
if-eqz v2, :cond_0
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/16 v5, 0x8
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {v3, v5}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->getLoadingSpinner()Landroid/view/View;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
xor-int/lit8 v5, v2, 0x1
|
|
|
|
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {v3, v4}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->getPngView()Landroid/widget/ImageView;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/sticker/dto/ModelSticker;->getName()Ljava/lang/String;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setContentDescription(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
iget-object v2, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
|
|
|
|
const-string v3, "itemView"
|
|
|
|
|
|
|
|
invoke-static {v2, v3}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "itemView.context"
|
|
|
|
|
|
|
|
invoke-static {v2, v3}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const v3, 0x7f0700bd
|
|
|
|
|
|
|
|
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
sget-object v3, Lcom/discord/utilities/apng/ApngUtils;->INSTANCE:Lcom/discord/utilities/apng/ApngUtils;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
|
|
|
|
check-cast v0, Lcom/discord/utilities/file/DownloadUtils$DownloadState$Completed;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/file/DownloadUtils$DownloadState$Completed;->getFile()Ljava/io/File;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->getPngView()Landroid/widget/ImageView;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
const/4 v8, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v2, 0x0
|
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
const/4 v8, 0x0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
:goto_1
|
|
|
|
invoke-virtual/range {v3 .. v8}, Lcom/discord/utilities/apng/ApngUtils;->renderApngFromFile(Ljava/io/File;Landroid/widget/ImageView;Ljava/lang/Integer;Ljava/lang/Integer;Z)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
if-eqz v1, :cond_5
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
if-eq v1, v0, :cond_4
|
|
|
|
|
|
|
|
const/4 v0, 0x2
|
|
|
|
|
|
|
|
if-eq v1, v0, :cond_3
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
sget-object v0, Lcom/discord/utilities/apng/ApngUtils;->INSTANCE:Lcom/discord/utilities/apng/ApngUtils;
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->getPngView()Landroid/widget/ImageView;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/utilities/apng/ApngUtils;->pauseApngAnimation(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->getPngView()Landroid/widget/ImageView;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
sget-object v0, Lcom/discord/utilities/apng/ApngUtils;->INSTANCE:Lcom/discord/utilities/apng/ApngUtils;
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->getPngView()Landroid/widget/ImageView;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
invoke-virtual {v1}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
move-result-object v1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/utilities/apng/ApngUtils;->pauseApngAnimation(Landroid/graphics/drawable/Drawable;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->getPngView()Landroid/widget/ImageView;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
new-instance v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng$configureUI$1;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-direct {v1, p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng$configureUI$1;-><init>(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;)V
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
sget-object v0, Lcom/discord/utilities/apng/ApngUtils;->INSTANCE:Lcom/discord/utilities/apng/ApngUtils;
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->getPngView()Landroid/widget/ImageView;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/utilities/apng/ApngUtils;->playApngAnimation(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
|
|
|
|
const-string v0, "null cannot be cast to non-null type com.discord.utilities.file.DownloadUtils.DownloadState.Completed"
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
:goto_2
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->getPngView()Landroid/widget/ImageView;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
new-instance v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng$configureUI$2;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-direct {v1, p1}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng$configureUI$2;-><init>(Lcom/discord/models/sticker/dto/ModelSticker;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
.method private final getLoadingSpinner()Landroid/view/View;
|
2020-07-08 16:44:49 +00:00
|
|
|
.locals 3
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->loadingSpinner$delegate:Lkotlin/properties/ReadOnlyProperty;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
sget-object v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getPngView()Landroid/widget/ImageView;
|
|
|
|
.locals 3
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->pngView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
sget-object v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
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/ImageView;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-09-10 21:23:57 +00:00
|
|
|
.method public getSubscription()Lrx/Subscription;
|
2020-07-08 16:44:49 +00:00
|
|
|
.locals 1
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->subscription:Lrx/Subscription;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onConfigure(ILcom/discord/widgets/chat/list/entries/ChatListEntry;)V
|
|
|
|
.locals 11
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
const-string v0, "data"
|
|
|
|
|
|
|
|
invoke-static {p2, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-super {p0, p1, p2}, Lcom/discord/widgets/chat/list/WidgetChatListItem;->onConfigure(ILcom/discord/widgets/chat/list/entries/ChatListEntry;)V
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
check-cast p2, Lcom/discord/widgets/chat/list/entries/StickerEntry;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-virtual {p2}, Lcom/discord/widgets/chat/list/entries/StickerEntry;->getSticker()Lcom/discord/models/sticker/dto/ModelSticker;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/sticker/dto/ModelSticker;->getType()Lcom/discord/models/sticker/dto/ModelSticker$Type;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
sget-object v0, Lcom/discord/models/sticker/dto/ModelSticker$Type;->PNG:Lcom/discord/models/sticker/dto/ModelSticker$Type;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-virtual {p2}, Lcom/discord/widgets/chat/list/entries/StickerEntry;->getSticker()Lcom/discord/models/sticker/dto/ModelSticker;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/models/sticker/dto/ModelSticker;->getType()Lcom/discord/models/sticker/dto/ModelSticker$Type;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
sget-object v0, Lcom/discord/models/sticker/dto/ModelSticker$Type;->APNG:Lcom/discord/models/sticker/dto/ModelSticker$Type;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2020-09-10 21:23:57 +00:00
|
|
|
sget-object p1, Lcom/discord/widgets/chat/list/model/WidgetChatListStickerModel;->Companion:Lcom/discord/widgets/chat/list/model/WidgetChatListStickerModel$Companion;
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
|
|
|
|
const-string v1, "itemView"
|
|
|
|
|
|
|
|
const-string v2, "itemView.context"
|
|
|
|
|
|
|
|
invoke-static {v0, v1, v2}, Lf/e/b/a/a;->Z(Landroid/view/View;Ljava/lang/String;Ljava/lang/String;)Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-virtual {p2}, Lcom/discord/widgets/chat/list/entries/StickerEntry;->getSticker()Lcom/discord/models/sticker/dto/ModelSticker;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
move-result-object p2
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-virtual {p1, v0, p2}, Lcom/discord/widgets/chat/list/model/WidgetChatListStickerModel$Companion;->get(Landroid/content/Context;Lcom/discord/models/sticker/dto/ModelSticker;)Lrx/Observable;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object p1
|
|
|
|
|
2020-09-10 21:23:57 +00:00
|
|
|
invoke-static {p1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui(Lrx/Observable;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
const-class v3, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-static {p1, v1}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
new-instance v5, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng$onConfigure$1;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-direct {v5, p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng$onConfigure$1;-><init>(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;)V
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
new-instance v8, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng$onConfigure$2;
|
2020-09-10 21:23:57 +00:00
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-direct {v8, p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng$onConfigure$2;-><init>(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;)V
|
2020-09-10 21:23:57 +00:00
|
|
|
|
|
|
|
const/16 v9, 0x18
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v2 .. v10}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public bridge synthetic onConfigure(ILjava/lang/Object;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
check-cast p2, Lcom/discord/widgets/chat/list/entries/ChatListEntry;
|
|
|
|
|
2020-09-14 18:37:20 +00:00
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemStickerPng;->onConfigure(ILcom/discord/widgets/chat/list/entries/ChatListEntry;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|