.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 ()V .locals 6 const-class v0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages; const/4 v1, 0x3 new-array v1, v1, [Lkotlin/reflect/KProperty; new-instance v2, Lkotlin/jvm/internal/x; invoke-static {v0}, Lkotlin/jvm/internal/y;->getOrCreateKotlinClass(Ljava/lang/Class;)Lkotlin/reflect/b; move-result-object v3 const-string v4, "dividerLeft" const-string v5, "getDividerLeft()Landroid/view/View;" invoke-direct {v2, v3, v4, v5}, Lkotlin/jvm/internal/x;->(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V invoke-static {v2}, Lkotlin/jvm/internal/y;->property1(Lkotlin/jvm/internal/w;)Lkotlin/reflect/d; move-result-object v2 check-cast v2, Lkotlin/reflect/KProperty; const/4 v3, 0x0 aput-object v2, v1, v3 new-instance v2, Lkotlin/jvm/internal/x; invoke-static {v0}, Lkotlin/jvm/internal/y;->getOrCreateKotlinClass(Ljava/lang/Class;)Lkotlin/reflect/b; move-result-object v3 const-string v4, "dividerRight" const-string v5, "getDividerRight()Landroid/view/View;" invoke-direct {v2, v3, v4, v5}, Lkotlin/jvm/internal/x;->(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V invoke-static {v2}, Lkotlin/jvm/internal/y;->property1(Lkotlin/jvm/internal/w;)Lkotlin/reflect/d; move-result-object v2 check-cast v2, Lkotlin/reflect/KProperty; const/4 v3, 0x1 aput-object v2, v1, v3 new-instance v2, Lkotlin/jvm/internal/x; invoke-static {v0}, Lkotlin/jvm/internal/y;->getOrCreateKotlinClass(Ljava/lang/Class;)Lkotlin/reflect/b; move-result-object v0 const-string v3, "text" const-string v4, "getText()Landroid/widget/TextView;" invoke-direct {v2, v0, v3, v4}, Lkotlin/jvm/internal/x;->(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V invoke-static {v2}, Lkotlin/jvm/internal/y;->property1(Lkotlin/jvm/internal/w;)Lkotlin/reflect/d; move-result-object v0 check-cast v0, Lkotlin/reflect/KProperty; const/4 v2, 0x2 aput-object v0, v1, v2 sput-object v1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemNewMessages;->$$delegatedProperties:[Lkotlin/reflect/KProperty; return-void .end method .method public constructor (Lcom/discord/widgets/chat/list/WidgetChatListAdapter;)V .locals 3 const-string v0, "adapter" invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const v0, 0x7f0d010f invoke-direct {p0, v0, p1}, Lcom/discord/widgets/chat/list/WidgetChatListItem;->(ILcom/discord/widgets/chat/list/WidgetChatListAdapter;)V const p1, 0x7f0a01e9 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; const p1, 0x7f0a01ea 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; const p1, 0x7f0a01eb 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 const v1, 0x7f06011b 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 const v1, 0x7f120bf5 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/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V 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/l;->checkExpressionValueIsNotNull(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 if-eqz v0, :cond_0 invoke-virtual {v0, v1}, Ljava/lang/String;->toUpperCase(Ljava/util/Locale;)Ljava/lang/String; move-result-object v0 const-string v1, "(this as java.lang.String).toUpperCase(locale)" invoke-static {v0, v1}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(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;->(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