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

303 lines
9.6 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages;
.super Lcom/discord/widgets/chat/list/WidgetChatListItem;
.source "WidgetChatListAdapterItemNewMessages.kt"
# static fields
.field static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
# instance fields
.field private final dividerLeft$delegate:Lkotlin/properties/ReadOnlyProperty;
.field private final dividerRight$delegate:Lkotlin/properties/ReadOnlyProperty;
.field private final text$delegate:Lkotlin/properties/ReadOnlyProperty;
# direct methods
.method static constructor <clinit>()V
2019-08-30 20:04:20 +00:00
.locals 6
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
const-class v0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
const/4 v1, 0x3
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
new-array v1, v1, [Lkotlin/reflect/KProperty;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
new-instance v2, Lkotlin/jvm/internal/v;
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
invoke-static {v0}, Lkotlin/jvm/internal/w;->P(Ljava/lang/Class;)Lkotlin/reflect/b;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
const-string v4, "dividerLeft"
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
const-string v5, "getDividerLeft()Landroid/view/View;"
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
invoke-direct {v2, v3, v4, v5}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
invoke-static {v2}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
move-result-object v2
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
check-cast v2, Lkotlin/reflect/KProperty;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
const/4 v3, 0x0
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
aput-object v2, v1, v3
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
new-instance v2, Lkotlin/jvm/internal/v;
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
invoke-static {v0}, Lkotlin/jvm/internal/w;->P(Ljava/lang/Class;)Lkotlin/reflect/b;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
const-string v4, "dividerRight"
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
const-string v5, "getDividerRight()Landroid/view/View;"
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
invoke-direct {v2, v3, v4, v5}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
invoke-static {v2}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
move-result-object v2
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
check-cast v2, Lkotlin/reflect/KProperty;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
const/4 v3, 0x1
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
aput-object v2, v1, v3
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
new-instance v2, Lkotlin/jvm/internal/v;
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
invoke-static {v0}, Lkotlin/jvm/internal/w;->P(Ljava/lang/Class;)Lkotlin/reflect/b;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
const-string v3, "text"
const-string v4, "getText()Landroid/widget/TextView;"
2019-08-30 20:04:20 +00:00
invoke-direct {v2, v0, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
invoke-static {v2}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
check-cast v0, Lkotlin/reflect/KProperty;
2019-07-24 11:27:29 +00:00
const/4 v2, 0x2
2019-08-30 20:04:20 +00:00
aput-object v0, v1, v2
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
sput-object v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public constructor <init>(Lcom/discord/widgets/chat/list/WidgetChatListAdapter;)V
2019-08-30 20:04:20 +00:00
.locals 3
2019-07-24 11:27:29 +00:00
const-string v0, "adapter"
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
2019-10-07 23:23:22 +00:00
const v0, 0x7f0d0108
2019-07-24 11:27:29 +00:00
invoke-direct {p0, v0, p1}, Lcom/discord/widgets/chat/list/WidgetChatListItem;-><init>(ILcom/discord/widgets/chat/list/WidgetChatListAdapter;)V
2019-10-07 23:23:22 +00:00
const p1, 0x7f0a01e9
2019-07-24 11:27:29 +00:00
invoke-static {p0, p1}, Lkotterknife/b;->a(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages;->dividerLeft$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-10-07 23:23:22 +00:00
const p1, 0x7f0a01ea
2019-07-24 11:27:29 +00:00
invoke-static {p0, p1}, Lkotterknife/b;->a(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages;->dividerRight$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-10-07 23:23:22 +00:00
const p1, 0x7f0a01eb
2019-07-24 11:27:29 +00:00
invoke-static {p0, p1}, Lkotterknife/b;->a(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages;->text$delegate:Lkotlin/properties/ReadOnlyProperty;
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages;->getDividerLeft()Landroid/view/View;
move-result-object p1
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages;->getDividerLeft()Landroid/view/View;
move-result-object v0
2019-10-07 23:23:22 +00:00
const v1, 0x7f06011b
2019-07-24 11:27:29 +00:00
invoke-static {v0, v1}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroid/view/View;I)I
move-result v0
invoke-virtual {p1, v0}, Landroid/view/View;->setBackgroundColor(I)V
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages;->getDividerRight()Landroid/view/View;
move-result-object p1
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages;->getDividerRight()Landroid/view/View;
move-result-object v0
invoke-static {v0, v1}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroid/view/View;I)I
move-result v0
invoke-virtual {p1, v0}, Landroid/view/View;->setBackgroundColor(I)V
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages;->getText()Landroid/widget/TextView;
move-result-object p1
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages;->getText()Landroid/widget/TextView;
move-result-object v0
check-cast v0, Landroid/view/View;
invoke-static {v0, v1}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroid/view/View;I)I
move-result v0
invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages;->getText()Landroid/widget/TextView;
move-result-object p1
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages;->getText()Landroid/widget/TextView;
move-result-object v0
invoke-virtual {v0}, Landroid/widget/TextView;->getContext()Landroid/content/Context;
move-result-object v0
2019-10-07 23:23:22 +00:00
const v1, 0x7f120bd6
2019-07-24 11:27:29 +00:00
invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v0
const-string v1, "text.context.getString(R\u2026ing.new_messages_divider)"
invoke-static {v0, v1}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
2019-08-30 20:04:20 +00:00
invoke-direct {p0}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages;->getText()Landroid/widget/TextView;
move-result-object v1
invoke-virtual {v1}, Landroid/widget/TextView;->getContext()Landroid/content/Context;
move-result-object v1
const-string v2, "text.context"
invoke-static {v1, v2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {v1}, Lcom/discord/utilities/locale/LocaleUtilsKt;->getPrimaryLocale(Landroid/content/Context;)Ljava/util/Locale;
move-result-object v1
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
2019-08-30 20:04:20 +00:00
invoke-virtual {v0, v1}, Ljava/lang/String;->toUpperCase(Ljava/util/Locale;)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-30 20:04:20 +00:00
const-string v1, "(this as java.lang.String).toUpperCase(locale)"
2019-07-24 11:27:29 +00:00
invoke-static {v0, v1}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
check-cast v0, Ljava/lang/CharSequence;
invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
return-void
:cond_0
new-instance p1, Lkotlin/r;
const-string v0, "null cannot be cast to non-null type java.lang.String"
invoke-direct {p1, v0}, Lkotlin/r;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method private final getDividerLeft()Landroid/view/View;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages;->dividerLeft$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages;->$$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/view/View;
return-object v0
.end method
.method private final getDividerRight()Landroid/view/View;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages;->dividerRight$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages;->$$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/view/View;
return-object v0
.end method
.method private final getText()Landroid/widget/TextView;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages;->text$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages;->$$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