170 lines
5.9 KiB
Smali
170 lines
5.9 KiB
Smali
|
.class Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemEmbed;
|
||
|
.super Lcom/discord/widgets/chat/list/WidgetChatListAdapter$ViewHolder;
|
||
|
.source "WidgetChatListAdapterItemEmbed.java"
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field itemEmbedAuthor:Landroid/widget/TextView;
|
||
|
.annotation build Lbutterknife/Bind;
|
||
|
value = {
|
||
|
0x7f0e014b
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field itemEmbedDescription:Landroid/widget/TextView;
|
||
|
.annotation build Lbutterknife/Bind;
|
||
|
value = {
|
||
|
0x7f0e014c
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field itemEmbedIcon:Landroid/widget/ImageView;
|
||
|
.annotation build Lbutterknife/Bind;
|
||
|
value = {
|
||
|
0x7f0e0149
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field itemEmbedImage:Landroid/widget/ImageView;
|
||
|
.annotation build Lbutterknife/Bind;
|
||
|
value = {
|
||
|
0x7f0e014d
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field itemEmbedImageIcons:Landroid/widget/ImageView;
|
||
|
.annotation build Lbutterknife/Bind;
|
||
|
value = {
|
||
|
0x7f0e014e
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field itemEmbedImageTiny:Landroid/widget/ImageView;
|
||
|
.annotation build Lbutterknife/Bind;
|
||
|
value = {
|
||
|
0x7f0e0147
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field itemEmbedProvider:Landroid/widget/TextView;
|
||
|
.annotation build Lbutterknife/Bind;
|
||
|
value = {
|
||
|
0x7f0e0148
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field itemEmbedTitle:Landroid/widget/TextView;
|
||
|
.annotation build Lbutterknife/Bind;
|
||
|
value = {
|
||
|
0x7f0e014a
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(ILcom/discord/widgets/chat/list/WidgetChatListAdapter;Lrx/functions/Func1;)V
|
||
|
.locals 2
|
||
|
.param p1, "layout" # I
|
||
|
.annotation build Landroid/support/annotation/LayoutRes;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p2, "adapter" # Lcom/discord/widgets/chat/list/WidgetChatListAdapter;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(I",
|
||
|
"Lcom/discord/widgets/chat/list/WidgetChatListAdapter;",
|
||
|
"Lrx/functions/Func1",
|
||
|
"<",
|
||
|
"Ljava/lang/Integer;",
|
||
|
"Lcom/discord/models/application/ModelAppChat$Item;",
|
||
|
">;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
.local p3, "getDataCallback":Lrx/functions/Func1;, "Lrx/functions/Func1<Ljava/lang/Integer;Lcom/discord/models/application/ModelAppChat$Item;>;"
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
invoke-direct {p0, p1, p2, p3}, Lcom/discord/widgets/chat/list/WidgetChatListAdapter$ViewHolder;-><init>(ILcom/discord/widgets/chat/list/WidgetChatListAdapter;Lrx/functions/Func1;)V
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemEmbed;->itemEmbedProvider:Landroid/widget/TextView;
|
||
|
|
||
|
invoke-static {v0, v1}, Lcom/discord/utilities/mg_text/MGTextEdit;->copyTextOnPress(Landroid/widget/TextView;Z)V
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemEmbed;->itemEmbedTitle:Landroid/widget/TextView;
|
||
|
|
||
|
invoke-static {v0, v1}, Lcom/discord/utilities/mg_text/MGTextEdit;->copyTextOnPress(Landroid/widget/TextView;Z)V
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemEmbed;->itemEmbedDescription:Landroid/widget/TextView;
|
||
|
|
||
|
invoke-static {v0, v1}, Lcom/discord/utilities/mg_text/MGTextEdit;->copyTextOnPress(Landroid/widget/TextView;Z)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method protected onConfigure(I)V
|
||
|
.locals 11
|
||
|
.param p1, "position" # I
|
||
|
|
||
|
.prologue
|
||
|
invoke-super {p0, p1}, Lcom/discord/widgets/chat/list/WidgetChatListAdapter$ViewHolder;->onConfigure(I)V
|
||
|
|
||
|
:try_start_0
|
||
|
new-instance v0, Lcom/discord/models/domain/ModelMessageEmbed$ViewBuilder;
|
||
|
|
||
|
invoke-virtual {p0, p1}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemEmbed;->getData(I)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
check-cast v1, Lcom/discord/models/application/ModelAppChat$Item;
|
||
|
|
||
|
invoke-virtual {v1}, Lcom/discord/models/application/ModelAppChat$Item;->getEmbed()Lcom/discord/models/domain/ModelMessageEmbed;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iget-object v2, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemEmbed;->itemEmbedProvider:Landroid/widget/TextView;
|
||
|
|
||
|
iget-object v3, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemEmbed;->itemEmbedTitle:Landroid/widget/TextView;
|
||
|
|
||
|
iget-object v4, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemEmbed;->itemEmbedAuthor:Landroid/widget/TextView;
|
||
|
|
||
|
iget-object v5, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemEmbed;->itemEmbedDescription:Landroid/widget/TextView;
|
||
|
|
||
|
iget-object v6, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemEmbed;->itemEmbedIcon:Landroid/widget/ImageView;
|
||
|
|
||
|
iget-object v7, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemEmbed;->itemEmbedImage:Landroid/widget/ImageView;
|
||
|
|
||
|
iget-object v8, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemEmbed;->itemEmbedImageIcons:Landroid/widget/ImageView;
|
||
|
|
||
|
iget-object v9, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemEmbed;->itemEmbedImageTiny:Landroid/widget/ImageView;
|
||
|
|
||
|
invoke-direct/range {v0 .. v9}, Lcom/discord/models/domain/ModelMessageEmbed$ViewBuilder;-><init>(Lcom/discord/models/domain/ModelMessageEmbed;Landroid/widget/TextView;Landroid/widget/TextView;Landroid/widget/TextView;Landroid/widget/TextView;Landroid/widget/ImageView;Landroid/widget/ImageView;Landroid/widget/ImageView;Landroid/widget/ImageView;)V
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelMessageEmbed$ViewBuilder;->configure()V
|
||
|
:try_end_0
|
||
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
||
|
|
||
|
:goto_0
|
||
|
return-void
|
||
|
|
||
|
:catch_0
|
||
|
move-exception v10
|
||
|
|
||
|
.local v10, "e":Ljava/lang/Exception;
|
||
|
const-string v0, "Unable to render embed."
|
||
|
|
||
|
invoke-static {v0, v10}, Lcom/discord/utilities/app/AppLog;->e(Ljava/lang/String;Ljava/lang/Throwable;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|