2020-02-20 19:33:18 +00:00
|
|
|
.class public final Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;
|
|
|
|
.super Lcom/discord/widgets/chat/list/WidgetChatListItem;
|
|
|
|
.source "WidgetChatListAdapterItemGuildTemplate.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$Model;,
|
|
|
|
Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$ModelProvider;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final image$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final imageText$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public item:Lcom/discord/widgets/chat/list/entries/GuildTemplateEntry;
|
|
|
|
|
|
|
|
.field public final openButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final serverNameText$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public subscription:Lrx/Subscription;
|
|
|
|
|
|
|
|
.field public final templateNameText$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 7
|
|
|
|
|
|
|
|
const-class v0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;
|
|
|
|
|
|
|
|
const/4 v1, 0x5
|
|
|
|
|
|
|
|
new-array v1, v1, [Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
new-instance v2, Lw/u/b/u;
|
|
|
|
|
|
|
|
invoke-static {v0}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v4, "image"
|
|
|
|
|
|
|
|
const-string v5, "getImage()Lcom/facebook/drawee/view/SimpleDraweeView;"
|
|
|
|
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
|
|
|
|
|
|
|
|
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
new-instance v3, Lw/u/b/u;
|
|
|
|
|
|
|
|
invoke-static {v0}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
const-string v5, "imageText"
|
|
|
|
|
|
|
|
const-string v6, "getImageText()Landroid/widget/TextView;"
|
|
|
|
|
|
|
|
invoke-direct {v3, v4, v5, v6}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
sget-object v4, Lw/u/b/w;->a:Lw/u/b/x;
|
|
|
|
|
|
|
|
invoke-virtual {v4, v3}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
|
|
|
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
new-instance v3, Lw/u/b/u;
|
|
|
|
|
|
|
|
invoke-static {v0}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
const-string v5, "serverNameText"
|
|
|
|
|
|
|
|
const-string v6, "getServerNameText()Landroid/widget/TextView;"
|
|
|
|
|
|
|
|
invoke-direct {v3, v4, v5, v6}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
sget-object v4, Lw/u/b/w;->a:Lw/u/b/x;
|
|
|
|
|
|
|
|
invoke-virtual {v4, v3}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
|
|
|
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
|
|
|
|
const/4 v2, 0x3
|
|
|
|
|
|
|
|
new-instance v3, Lw/u/b/u;
|
|
|
|
|
|
|
|
invoke-static {v0}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
const-string v5, "templateNameText"
|
|
|
|
|
|
|
|
const-string v6, "getTemplateNameText()Landroid/widget/TextView;"
|
|
|
|
|
|
|
|
invoke-direct {v3, v4, v5, v6}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
sget-object v4, Lw/u/b/w;->a:Lw/u/b/x;
|
|
|
|
|
|
|
|
invoke-virtual {v4, v3}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
|
|
|
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
|
|
|
|
const/4 v2, 0x4
|
|
|
|
|
|
|
|
new-instance v3, Lw/u/b/u;
|
|
|
|
|
|
|
|
invoke-static {v0}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v4, "openButton"
|
|
|
|
|
|
|
|
const-string v5, "getOpenButton()Landroid/widget/Button;"
|
|
|
|
|
|
|
|
invoke-direct {v3, v0, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
sget-object v0, Lw/u/b/w;->a:Lw/u/b/x;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v3}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
|
|
|
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
|
|
|
|
sput-object v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Lcom/discord/widgets/chat/list/WidgetChatListAdapter;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2020-03-01 08:10:35 +00:00
|
|
|
const v0, 0x7f0d0160
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
invoke-direct {p0, v0, p1}, Lcom/discord/widgets/chat/list/WidgetChatListItem;-><init>(ILcom/discord/widgets/chat/list/WidgetChatListAdapter;)V
|
|
|
|
|
2020-03-01 08:10:35 +00:00
|
|
|
const p1, 0x7f0a0457
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
invoke-static {p0, p1}, Lx/a/a2/w;->a(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->image$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-03-01 08:10:35 +00:00
|
|
|
const p1, 0x7f0a0458
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
invoke-static {p0, p1}, Lx/a/a2/w;->a(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->imageText$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-03-01 08:10:35 +00:00
|
|
|
const p1, 0x7f0a045b
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
invoke-static {p0, p1}, Lx/a/a2/w;->a(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->serverNameText$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-03-01 08:10:35 +00:00
|
|
|
const p1, 0x7f0a045a
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
invoke-static {p0, p1}, Lx/a/a2/w;->a(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->templateNameText$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-03-01 08:10:35 +00:00
|
|
|
const p1, 0x7f0a0459
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
invoke-static {p0, p1}, Lx/a/a2/w;->a(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->openButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "adapter"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$configureInvalidUI(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$Model$Invalid;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->configureInvalidUI(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$Model$Invalid;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$configureUI(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$Model;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->configureUI(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$Model;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getSubscription$p(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;)Lrx/Subscription;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->subscription:Lrx/Subscription;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2020-02-24 20:20:24 +00:00
|
|
|
.method public static final synthetic access$openGuildTemplate(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;Landroid/content/Context;Lcom/discord/models/domain/ModelGuildTemplate;)V
|
2020-02-20 19:33:18 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-02-24 20:20:24 +00:00
|
|
|
invoke-direct {p0, p1, p2}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->openGuildTemplate(Landroid/content/Context;Lcom/discord/models/domain/ModelGuildTemplate;)V
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$setSubscription$p(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;Lrx/Subscription;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->subscription:Lrx/Subscription;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final configureInvalidUI(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$Model$Invalid;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
|
|
|
|
const-string v0, "itemView"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->getServerNameText()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-03-01 08:10:35 +00:00
|
|
|
const v0, 0x7f1209ba
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->getTemplateNameText()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-03-01 08:10:35 +00:00
|
|
|
const v0, 0x7f1209b9
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->getTemplateNameText()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const/16 v0, 0x8
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->getImage()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-03-01 08:10:35 +00:00
|
|
|
const v1, 0x7f0804d9
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v1}, Lcom/facebook/drawee/view/SimpleDraweeView;->setActualImageResource(I)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->getImageText()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->getOpenButton()Landroid/widget/Button;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final configureLoadingUI()V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
|
|
|
|
const-string v1, "itemView"
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->getServerNameText()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-03-01 08:10:35 +00:00
|
|
|
const v1, 0x7f1209dd
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->getTemplateNameText()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/16 v1, 0x8
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->getImage()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-03-01 08:10:35 +00:00
|
|
|
const v2, 0x7f080127
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v2}, Lcom/facebook/drawee/view/SimpleDraweeView;->setImageResource(I)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->getImageText()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->getOpenButton()Landroid/widget/Button;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final configureResolvedUI(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$Model$Resolved;)V
|
|
|
|
.locals 16
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$Model$Resolved;->component1()Lcom/discord/models/domain/ModelGuildTemplate;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->getServerNameText()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lcom/discord/models/domain/ModelGuildTemplate;->getSerializedSourceGuild()Lcom/discord/models/domain/ModelGuild;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelGuild;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
move-object v1, v7
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->getTemplateNameText()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lcom/discord/models/domain/ModelGuildTemplate;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->getTemplateNameText()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v0, v8}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->getImage()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/16 v4, 0x8
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const-string v1, "asset://asset/images/default_icon_selected.jpg"
|
|
|
|
|
|
|
|
move-object v0, v6
|
|
|
|
|
|
|
|
invoke-static/range {v0 .. v5}, Lcom/discord/utilities/icon/IconUtils;->getForGuildTemplate$default(Lcom/discord/models/domain/ModelGuildTemplate;Ljava/lang/String;ZLjava/lang/Integer;ILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v10
|
|
|
|
|
2020-02-20 23:34:33 +00:00
|
|
|
const v11, 0x7f070058
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
const/4 v12, 0x0
|
|
|
|
|
|
|
|
const/4 v13, 0x0
|
|
|
|
|
|
|
|
const/16 v14, 0x18
|
|
|
|
|
|
|
|
const/4 v15, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v9 .. v15}, Lcom/discord/utilities/icon/IconUtils;->setIcon$default(Landroid/widget/ImageView;Ljava/lang/String;ILkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lcom/discord/models/domain/ModelGuildTemplate;->getSerializedSourceGuild()Lcom/discord/models/domain/ModelGuild;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelGuild;->getIconHash()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
move-object v0, v7
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lcom/discord/models/domain/ModelGuildTemplate;->getSerializedSourceGuild()Lcom/discord/models/domain/ModelGuild;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelGuild;->getIconHash()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
move-object v0, v7
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
const-string v2, "ICON_UNSET"
|
|
|
|
|
|
|
|
invoke-static {v0, v2}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->getImageText()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
invoke-virtual {v6}, Lcom/discord/models/domain/ModelGuildTemplate;->getSerializedSourceGuild()Lcom/discord/models/domain/ModelGuild;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelGuild;->getShortName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
:goto_4
|
|
|
|
invoke-static {v0, v7}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->getOpenButton()Landroid/widget/Button;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0, v8}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->getOpenButton()Landroid/widget/Button;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$configureResolvedUI$1;
|
|
|
|
|
|
|
|
move-object/from16 v2, p0
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v6}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$configureResolvedUI$1;-><init>(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;Lcom/discord/models/domain/ModelGuildTemplate;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final configureUI(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$Model;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
instance-of v0, p1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$Model$Loading;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->configureLoadingUI()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
instance-of v0, p1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$Model$Resolved;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$Model$Resolved;
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->configureResolvedUI(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$Model$Resolved;)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
instance-of v0, p1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$Model$Invalid;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$Model$Invalid;
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->configureInvalidUI(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$Model$Invalid;)V
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
new-instance p1, Lw/g;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Lw/g;-><init>()V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getImage()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->image$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->$$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
|
|
|
|
|
|
|
|
.method private final getImageText()Landroid/widget/TextView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->imageText$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
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/TextView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getOpenButton()Landroid/widget/Button;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->openButton$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x4
|
|
|
|
|
|
|
|
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/Button;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getServerNameText()Landroid/widget/TextView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->serverNameText$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
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/TextView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getTemplateNameText()Landroid/widget/TextView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->templateNameText$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x3
|
|
|
|
|
|
|
|
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/TextView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2020-02-24 20:20:24 +00:00
|
|
|
.method private final openGuildTemplate(Landroid/content/Context;Lcom/discord/models/domain/ModelGuildTemplate;)V
|
2020-03-01 08:10:35 +00:00
|
|
|
.locals 2
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-02-24 20:20:24 +00:00
|
|
|
sget-object v0, Lcom/discord/widgets/guilds/create/WidgetGuildClone;->Companion:Lcom/discord/widgets/guilds/create/WidgetGuildClone$Companion;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-02-24 20:20:24 +00:00
|
|
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelGuildTemplate;->getCode()Ljava/lang/String;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-02-24 20:20:24 +00:00
|
|
|
move-result-object p2
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-01 08:10:35 +00:00
|
|
|
const-string v1, "Guild Template Embed"
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1, p2, v1}, Lcom/discord/widgets/guilds/create/WidgetGuildClone$Companion;->show(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public getSubscription()Lrx/Subscription;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->subscription:Lrx/Subscription;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onConfigure(ILcom/discord/widgets/chat/list/entries/ChatListEntry;)V
|
|
|
|
.locals 9
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
|
|
|
|
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/GuildTemplateEntry;
|
|
|
|
|
|
|
|
iput-object p2, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->item:Lcom/discord/widgets/chat/list/entries/GuildTemplateEntry;
|
|
|
|
|
|
|
|
sget-object p1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$ModelProvider;->INSTANCE:Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$ModelProvider;
|
|
|
|
|
|
|
|
iget-object p2, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;->item:Lcom/discord/widgets/chat/list/entries/GuildTemplateEntry;
|
|
|
|
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$ModelProvider;->get(Lcom/discord/widgets/chat/list/entries/GuildTemplateEntry;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-static {p1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui(Lrx/Observable;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-class v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
new-instance v6, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$onConfigure$1;
|
|
|
|
|
|
|
|
invoke-direct {v6, p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$onConfigure$1;-><init>(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;)V
|
|
|
|
|
|
|
|
new-instance v4, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$onConfigure$2;
|
|
|
|
|
|
|
|
invoke-direct {v4, p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$onConfigure$2;-><init>(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;)V
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
new-instance v3, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$onConfigure$3;
|
|
|
|
|
|
|
|
invoke-direct {v3, p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate$onConfigure$3;-><init>(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGuildTemplate;)V
|
|
|
|
|
|
|
|
const/16 v7, 0x12
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v0 .. v8}, 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
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "item"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "data"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.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/WidgetChatListAdapterItemGuildTemplate;->onConfigure(ILcom/discord/widgets/chat/list/entries/ChatListEntry;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|