apkfuckery/com.discord/smali/com/discord/widgets/chat/list/WidgetChatListAdapterItemPrivateChannelStart.smali

419 lines
12 KiB
Smali
Raw Normal View History

2019-11-23 00:16:54 +00:00
.class public final Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemPrivateChannelStart;
.super Lcom/discord/widgets/chat/list/WidgetChatListItem;
.source "WidgetChatListAdapterItemPrivateChannelStart.kt"
# static fields
2019-12-06 03:29:40 +00:00
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
2019-11-23 00:16:54 +00:00
# instance fields
2019-12-06 03:29:40 +00:00
.field public final channelIconView$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-11-23 00:16:54 +00:00
2019-12-06 03:29:40 +00:00
.field public final descriptionView$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-11-23 00:16:54 +00:00
2019-12-06 03:29:40 +00:00
.field public final headerView$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-11-23 00:16:54 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public static constructor <clinit>()V
.locals 7
2019-11-23 00:16:54 +00:00
const-class v0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemPrivateChannelStart;
const/4 v1, 0x3
new-array v1, v1, [Lkotlin/reflect/KProperty;
2019-12-18 07:41:41 +00:00
new-instance v2, Lm/u/b/u;
2019-11-23 00:16:54 +00:00
2019-12-18 07:41:41 +00:00
invoke-static {v0}, Lm/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lm/y/b;
2019-11-23 00:16:54 +00:00
move-result-object v3
const-string v4, "channelIconView"
const-string v5, "getChannelIconView()Landroid/widget/ImageView;"
2019-12-18 07:41:41 +00:00
invoke-direct {v2, v3, v4, v5}, Lm/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-11-23 00:16:54 +00:00
2019-12-18 07:41:41 +00:00
sget-object v3, Lm/u/b/w;->a:Lm/u/b/x;
2019-11-23 00:16:54 +00:00
2019-12-18 07:41:41 +00:00
invoke-virtual {v3, v2}, Lm/u/b/x;->property1(Lm/u/b/t;)Lm/y/d;
2019-11-23 00:16:54 +00:00
const/4 v3, 0x0
aput-object v2, v1, v3
2019-12-06 03:29:40 +00:00
const/4 v2, 0x1
2019-11-23 00:16:54 +00:00
2019-12-18 07:41:41 +00:00
new-instance v3, Lm/u/b/u;
2019-11-23 00:16:54 +00:00
2019-12-18 07:41:41 +00:00
invoke-static {v0}, Lm/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lm/y/b;
2019-11-23 00:16:54 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v4
2019-11-23 00:16:54 +00:00
2019-12-06 03:29:40 +00:00
const-string v5, "headerView"
2019-11-23 00:16:54 +00:00
2019-12-06 03:29:40 +00:00
const-string v6, "getHeaderView()Lcom/discord/app/AppTextView;"
2019-11-23 00:16:54 +00:00
2019-12-18 07:41:41 +00:00
invoke-direct {v3, v4, v5, v6}, Lm/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-11-23 00:16:54 +00:00
2019-12-18 07:41:41 +00:00
sget-object v4, Lm/u/b/w;->a:Lm/u/b/x;
2019-11-23 00:16:54 +00:00
2019-12-18 07:41:41 +00:00
invoke-virtual {v4, v3}, Lm/u/b/x;->property1(Lm/u/b/t;)Lm/y/d;
2019-11-23 00:16:54 +00:00
2019-12-06 03:29:40 +00:00
aput-object v3, v1, v2
2019-11-23 00:16:54 +00:00
2019-12-06 03:29:40 +00:00
const/4 v2, 0x2
2019-11-23 00:16:54 +00:00
2019-12-18 07:41:41 +00:00
new-instance v3, Lm/u/b/u;
2019-11-23 00:16:54 +00:00
2019-12-18 07:41:41 +00:00
invoke-static {v0}, Lm/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lm/y/b;
2019-11-23 00:16:54 +00:00
move-result-object v0
2019-12-06 03:29:40 +00:00
const-string v4, "descriptionView"
2019-11-23 00:16:54 +00:00
2019-12-06 03:29:40 +00:00
const-string v5, "getDescriptionView()Lcom/discord/app/AppTextView;"
2019-11-23 00:16:54 +00:00
2019-12-18 07:41:41 +00:00
invoke-direct {v3, v0, v4, v5}, Lm/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-11-23 00:16:54 +00:00
2019-12-18 07:41:41 +00:00
sget-object v0, Lm/u/b/w;->a:Lm/u/b/x;
2019-11-23 00:16:54 +00:00
2019-12-18 07:41:41 +00:00
invoke-virtual {v0, v3}, Lm/u/b/x;->property1(Lm/u/b/t;)Lm/y/d;
2019-11-23 00:16:54 +00:00
2019-12-06 03:29:40 +00:00
aput-object v3, v1, v2
2019-11-23 00:16:54 +00:00
sput-object v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemPrivateChannelStart;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
return-void
.end method
.method public constructor <init>(Lcom/discord/widgets/chat/list/WidgetChatListAdapter;)V
.locals 1
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_0
2019-11-23 00:16:54 +00:00
2019-12-18 07:41:41 +00:00
const v0, 0x7f0d0126
2019-11-23 00:16:54 +00:00
invoke-direct {p0, v0, p1}, Lcom/discord/widgets/chat/list/WidgetChatListItem;-><init>(ILcom/discord/widgets/chat/list/WidgetChatListAdapter;)V
2019-12-18 07:41:41 +00:00
const p1, 0x7f0a01dc
2019-11-23 00:16:54 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {p0, p1}, Le/k/a/b/e/p/g;->a(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty;
2019-11-23 00:16:54 +00:00
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemPrivateChannelStart;->channelIconView$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-12-18 07:41:41 +00:00
const p1, 0x7f0a01db
2019-11-23 00:16:54 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {p0, p1}, Le/k/a/b/e/p/g;->a(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty;
2019-11-23 00:16:54 +00:00
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemPrivateChannelStart;->headerView$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-12-18 07:41:41 +00:00
const p1, 0x7f0a01dd
2019-11-23 00:16:54 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {p0, p1}, Le/k/a/b/e/p/g;->a(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty;
2019-11-23 00:16:54 +00:00
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemPrivateChannelStart;->descriptionView$delegate:Lkotlin/properties/ReadOnlyProperty;
return-void
2019-12-06 03:29:40 +00:00
:cond_0
const-string p1, "adapter"
2019-12-18 07:41:41 +00:00
invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
2019-11-23 00:16:54 +00:00
.end method
.method private final getChannelIconView()Landroid/widget/ImageView;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemPrivateChannelStart;->channelIconView$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemPrivateChannelStart;->$$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, Landroid/widget/ImageView;
return-object v0
.end method
.method private final getDescriptionView()Lcom/discord/app/AppTextView;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemPrivateChannelStart;->descriptionView$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemPrivateChannelStart;->$$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, Lcom/discord/app/AppTextView;
return-object v0
.end method
.method private final getHeaderView()Lcom/discord/app/AppTextView;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemPrivateChannelStart;->headerView$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemPrivateChannelStart;->$$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, Lcom/discord/app/AppTextView;
return-object v0
.end method
.method private final getStartResId(I)I
.locals 2
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/StringRes;
.end annotation
2019-11-23 00:16:54 +00:00
const/4 v0, 0x1
2019-12-12 08:58:10 +00:00
const v1, 0x7f120286
2019-11-23 00:16:54 +00:00
if-eq p1, v0, :cond_1
const/4 v0, 0x3
if-eq p1, v0, :cond_0
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-11-23 00:16:54 +00:00
:cond_0
2019-12-12 08:58:10 +00:00
const v1, 0x7f120287
2019-11-23 00:16:54 +00:00
:cond_1
2019-12-06 03:29:40 +00:00
:goto_0
2019-11-23 00:16:54 +00:00
return v1
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public onConfigure(ILcom/discord/widgets/chat/list/entries/ChatListEntry;)V
2019-11-23 00:16:54 +00:00
.locals 18
2019-12-06 03:29:40 +00:00
if-eqz p2, :cond_3
2019-11-23 00:16:54 +00:00
invoke-super/range {p0 .. p2}, Lcom/discord/widgets/chat/list/WidgetChatListItem;->onConfigure(ILcom/discord/widgets/chat/list/entries/ChatListEntry;)V
2019-12-06 03:29:40 +00:00
move-object/from16 v0, p2
2019-11-23 00:16:54 +00:00
check-cast v0, Lcom/discord/widgets/chat/list/entries/StartOfPrivateChatEntry;
invoke-virtual {v0}, Lcom/discord/widgets/chat/list/entries/StartOfPrivateChatEntry;->component2()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0}, Lcom/discord/widgets/chat/list/entries/StartOfPrivateChatEntry;->component3()I
move-result v2
invoke-virtual {v0}, Lcom/discord/widgets/chat/list/entries/StartOfPrivateChatEntry;->component4()Ljava/lang/String;
move-result-object v4
invoke-virtual {v0}, Lcom/discord/widgets/chat/list/entries/StartOfPrivateChatEntry;->component5()Z
move-result v0
2019-12-18 07:41:41 +00:00
invoke-static {v1}, Lm/a0/p;->isBlank(Ljava/lang/CharSequence;)Z
2019-11-23 00:16:54 +00:00
move-result v3
const/4 v10, 0x1
xor-int/2addr v3, v10
if-eqz v3, :cond_0
goto :goto_0
:cond_0
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemPrivateChannelStart;->getHeaderView()Lcom/discord/app/AppTextView;
move-result-object v1
2019-12-06 03:29:40 +00:00
invoke-virtual {v1}, Landroid/widget/TextView;->getContext()Landroid/content/Context;
2019-11-23 00:16:54 +00:00
move-result-object v1
2019-12-18 07:41:41 +00:00
const v3, 0x7f121258
2019-11-23 00:16:54 +00:00
invoke-virtual {v1, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v1
const-string v3, "headerView.context.getString(R.string.unnamed)"
2019-12-18 07:41:41 +00:00
invoke-static {v1, v3}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-11-23 00:16:54 +00:00
:goto_0
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemPrivateChannelStart;->getHeaderView()Lcom/discord/app/AppTextView;
move-result-object v3
2019-12-06 03:29:40 +00:00
invoke-virtual {v3, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
2019-11-23 00:16:54 +00:00
if-eqz v4, :cond_1
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemPrivateChannelStart;->getChannelIconView()Landroid/widget/ImageView;
move-result-object v3
const v5, 0x7f07005f
const/4 v6, 0x0
const/4 v7, 0x0
const/16 v8, 0x18
const/4 v9, 0x0
invoke-static/range {v3 .. v9}, 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
goto :goto_1
:cond_1
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemPrivateChannelStart;->getChannelIconView()Landroid/widget/ImageView;
move-result-object v11
const v13, 0x7f07005f
const/4 v14, 0x0
const/4 v15, 0x0
const/16 v16, 0x18
const/16 v17, 0x0
const-string v12, "asset://asset/images/default_icon.jpg"
invoke-static/range {v11 .. v17}, 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
:goto_1
if-eqz v0, :cond_2
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemPrivateChannelStart;->getDescriptionView()Lcom/discord/app/AppTextView;
move-result-object v0
2019-12-18 07:41:41 +00:00
const v1, 0x7f12116b
2019-11-23 00:16:54 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
2019-11-23 00:16:54 +00:00
2019-12-06 03:29:40 +00:00
move-object/from16 v3, p0
goto :goto_2
2019-11-23 00:16:54 +00:00
:cond_2
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemPrivateChannelStart;->getDescriptionView()Lcom/discord/app/AppTextView;
move-result-object v0
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Landroid/widget/TextView;->getContext()Landroid/content/Context;
2019-11-23 00:16:54 +00:00
move-result-object v0
move-object/from16 v3, p0
invoke-direct {v3, v2}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemPrivateChannelStart;->getStartResId(I)I
move-result v2
invoke-virtual {v0, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v0
const-string v2, "descriptionView.context.\u2026tStartResId(channelType))"
2019-12-18 07:41:41 +00:00
invoke-static {v0, v2}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-11-23 00:16:54 +00:00
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemPrivateChannelStart;->getDescriptionView()Lcom/discord/app/AppTextView;
move-result-object v2
new-array v4, v10, [Ljava/lang/Object;
const/4 v5, 0x0
aput-object v1, v4, v5
2019-12-06 03:29:40 +00:00
array-length v1, v4
invoke-static {v4, v1}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
2019-11-23 00:16:54 +00:00
move-result-object v1
invoke-static {v0, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
const-string v1, "java.lang.String.format(this, *args)"
2019-12-18 07:41:41 +00:00
invoke-static {v0, v1}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-11-23 00:16:54 +00:00
new-array v1, v5, [Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
invoke-virtual {v2, v0, v1}, Lcom/discord/app/AppTextView;->a(Ljava/lang/String;[Ljava/lang/Object;)V
2019-11-23 00:16:54 +00:00
2019-12-06 03:29:40 +00:00
:goto_2
2019-11-23 00:16:54 +00:00
return-void
2019-12-06 03:29:40 +00:00
:cond_3
move-object/from16 v3, p0
const-string v0, "data"
2019-12-18 07:41:41 +00:00
invoke-static {v0}, Lm/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
throw v0
2019-11-23 00:16:54 +00:00
.end method
2019-12-06 03:29:40 +00:00
.method public bridge synthetic onConfigure(ILjava/lang/Object;)V
2019-11-23 00:16:54 +00:00
.locals 0
check-cast p2, Lcom/discord/widgets/chat/list/entries/ChatListEntry;
invoke-virtual {p0, p1, p2}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemPrivateChannelStart;->onConfigure(ILcom/discord/widgets/chat/list/entries/ChatListEntry;)V
return-void
.end method