189 lines
6.3 KiB
Smali
189 lines
6.3 KiB
Smali
.class public final Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemDstiPng;
|
|
.super Lcom/discord/widgets/chat/list/WidgetChatListItem;
|
|
.source "WidgetChatListAdapterItemDstiPng.kt"
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
# instance fields
|
|
.field public final pngView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 5
|
|
|
|
const/4 v0, 0x1
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
const-class v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemDstiPng;
|
|
|
|
const-string v2, "pngView"
|
|
|
|
const-string v3, "getPngView()Lcom/facebook/drawee/view/SimpleDraweeView;"
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-static {v1, v2, v3, v4}, Lf/e/b/a/a;->K(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lk0/o/c/r;
|
|
|
|
move-result-object v1
|
|
|
|
aput-object v1, v0, v4
|
|
|
|
sput-object v0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemDstiPng;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/discord/widgets/chat/list/WidgetChatListAdapter;)V
|
|
.locals 1
|
|
|
|
const-string v0, "adapter"
|
|
|
|
invoke-static {p1, v0}, Lk0/o/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const v0, 0x7f0d0191
|
|
|
|
invoke-direct {p0, v0, p1}, Lcom/discord/widgets/chat/list/WidgetChatListItem;-><init>(ILcom/discord/widgets/chat/list/WidgetChatListAdapter;)V
|
|
|
|
const p1, 0x7f0a0220
|
|
|
|
invoke-static {p0, p1}, Lf/n/a/k/a;->k(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemDstiPng;->pngView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final configureUI(Lcom/discord/models/dsti/dto/ModelDsti;)V
|
|
.locals 10
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemDstiPng;->getPngView()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/discord/utilities/dsti/DstiUtils;->INSTANCE:Lcom/discord/utilities/dsti/DstiUtils;
|
|
|
|
invoke-virtual {v1, p1}, Lcom/discord/utilities/dsti/DstiUtils;->getCDNAssetUrl(Lcom/discord/models/dsti/dto/ModelDsti;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
sget-object v2, Lcom/discord/utilities/images/MGImagesConfig$CustomImageFormat;->APNG:Lcom/discord/utilities/images/MGImagesConfig$CustomImageFormat;
|
|
|
|
invoke-static {v2}, Lf/n/a/k/a;->listOf(Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v7
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/16 v8, 0x7c
|
|
|
|
const/4 v9, 0x0
|
|
|
|
invoke-static/range {v0 .. v9}, Lcom/discord/utilities/images/MGImages;->setImage$default(Landroid/widget/ImageView;Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;Ljava/util/List;ILjava/lang/Object;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemDstiPng;->getPngView()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemDstiPng$configureUI$1;
|
|
|
|
invoke-direct {v1, p1}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemDstiPng$configureUI$1;-><init>(Lcom/discord/models/dsti/dto/ModelDsti;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final getPngView()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemDstiPng;->pngView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemDstiPng;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
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
|
|
|
|
check-cast v0, Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onConfigure(ILcom/discord/widgets/chat/list/entries/ChatListEntry;)V
|
|
.locals 1
|
|
|
|
const-string v0, "data"
|
|
|
|
invoke-static {p2, v0}, Lk0/o/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-super {p0, p1, p2}, Lcom/discord/widgets/chat/list/WidgetChatListItem;->onConfigure(ILcom/discord/widgets/chat/list/entries/ChatListEntry;)V
|
|
|
|
check-cast p2, Lcom/discord/widgets/chat/list/entries/DstiEntry;
|
|
|
|
invoke-virtual {p2}, Lcom/discord/widgets/chat/list/entries/DstiEntry;->getDsti()Lcom/discord/models/dsti/dto/ModelDsti;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/dsti/dto/ModelDsti;->getType()Lcom/discord/models/dsti/dto/ModelDsti$Type;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/discord/models/dsti/dto/ModelDsti$Type;->PNG:Lcom/discord/models/dsti/dto/ModelDsti$Type;
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
invoke-virtual {p2}, Lcom/discord/widgets/chat/list/entries/DstiEntry;->getDsti()Lcom/discord/models/dsti/dto/ModelDsti;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/dsti/dto/ModelDsti;->getType()Lcom/discord/models/dsti/dto/ModelDsti$Type;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/discord/models/dsti/dto/ModelDsti$Type;->APNG:Lcom/discord/models/dsti/dto/ModelDsti$Type;
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {p2}, Lcom/discord/widgets/chat/list/entries/DstiEntry;->getDsti()Lcom/discord/models/dsti/dto/ModelDsti;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemDstiPng;->configureUI(Lcom/discord/models/dsti/dto/ModelDsti;)V
|
|
|
|
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;
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemDstiPng;->onConfigure(ILcom/discord/widgets/chat/list/entries/ChatListEntry;)V
|
|
|
|
return-void
|
|
.end method
|