.class public final LWidgetChoosePlanAdapter$d; .super Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder; .source "WidgetChoosePlanAdapter.kt" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = LWidgetChoosePlanAdapter; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "d" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder<", "LWidgetChoosePlanAdapter;", "LWidgetChoosePlanAdapter$Item;", ">;" } .end annotation # static fields .field public static final synthetic g:[Lkotlin/reflect/KProperty; # instance fields .field public final a:Lkotlin/properties/ReadOnlyProperty; .field public final b:Lkotlin/properties/ReadOnlyProperty; .field public final c:Lkotlin/properties/ReadOnlyProperty; .field public final d:Lkotlin/properties/ReadOnlyProperty; .field public final e:Lkotlin/properties/ReadOnlyProperty; .field public final f:Lkotlin/properties/ReadOnlyProperty; # direct methods .method public static constructor ()V .locals 5 const-class v0, LWidgetChoosePlanAdapter$d; const/4 v1, 0x6 new-array v1, v1, [Lkotlin/reflect/KProperty; const-string v2, "container" const-string v3, "getContainer()Landroidx/cardview/widget/CardView;" const/4 v4, 0x0 invoke-static {v0, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s; move-result-object v2 aput-object v2, v1, v4 const-string v2, "planName" const-string v3, "getPlanName()Landroid/widget/TextView;" invoke-static {v0, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s; move-result-object v2 const/4 v3, 0x1 aput-object v2, v1, v3 const-string v2, "planPrice" const-string v3, "getPlanPrice()Landroid/widget/TextView;" invoke-static {v0, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s; move-result-object v2 const/4 v3, 0x2 aput-object v2, v1, v3 const-string v2, "planIcon" const-string v3, "getPlanIcon()Landroid/widget/ImageView;" invoke-static {v0, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s; move-result-object v2 const/4 v3, 0x3 aput-object v2, v1, v3 const-string v2, "currentPlan" const-string v3, "getCurrentPlan()Landroid/widget/TextView;" invoke-static {v0, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s; move-result-object v2 const/4 v3, 0x4 aput-object v2, v1, v3 const-string v2, "planBorder" const-string v3, "getPlanBorder()Landroid/widget/ImageView;" invoke-static {v0, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s; move-result-object v0 const/4 v2, 0x5 aput-object v0, v1, v2 sput-object v1, LWidgetChoosePlanAdapter$d;->g:[Lkotlin/reflect/KProperty; return-void .end method .method public constructor (LWidgetChoosePlanAdapter;)V .locals 1 const-string v0, "adapter" invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const v0, 0x7f0d01ca invoke-direct {p0, v0, p1}, Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;->(ILcom/discord/utilities/mg_recycler/MGRecyclerAdapter;)V const p1, 0x7f0a073a invoke-static {p0, p1}, Lc0/j/a;->j(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty; move-result-object p1 iput-object p1, p0, LWidgetChoosePlanAdapter$d;->a:Lkotlin/properties/ReadOnlyProperty; const p1, 0x7f0a073d invoke-static {p0, p1}, Lc0/j/a;->j(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty; move-result-object p1 iput-object p1, p0, LWidgetChoosePlanAdapter$d;->b:Lkotlin/properties/ReadOnlyProperty; const p1, 0x7f0a073e invoke-static {p0, p1}, Lc0/j/a;->j(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty; move-result-object p1 iput-object p1, p0, LWidgetChoosePlanAdapter$d;->c:Lkotlin/properties/ReadOnlyProperty; const p1, 0x7f0a073c invoke-static {p0, p1}, Lc0/j/a;->j(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty; move-result-object p1 iput-object p1, p0, LWidgetChoosePlanAdapter$d;->d:Lkotlin/properties/ReadOnlyProperty; const p1, 0x7f0a073b invoke-static {p0, p1}, Lc0/j/a;->j(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty; move-result-object p1 iput-object p1, p0, LWidgetChoosePlanAdapter$d;->e:Lkotlin/properties/ReadOnlyProperty; const p1, 0x7f0a0739 invoke-static {p0, p1}, Lc0/j/a;->j(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty; move-result-object p1 iput-object p1, p0, LWidgetChoosePlanAdapter$d;->f:Lkotlin/properties/ReadOnlyProperty; return-void .end method # virtual methods .method public final a()Landroid/widget/TextView; .locals 3 iget-object v0, p0, LWidgetChoosePlanAdapter$d;->c:Lkotlin/properties/ReadOnlyProperty; sget-object v1, LWidgetChoosePlanAdapter$d;->g:[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 public onConfigure(ILjava/lang/Object;)V .locals 12 check-cast p2, LWidgetChoosePlanAdapter$Item; const-string v0, "data" invoke-static {p2, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V invoke-super {p0, p1, p2}, Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;->onConfigure(ILjava/lang/Object;)V move-object p1, p2 check-cast p1, LWidgetChoosePlanAdapter$Item$Plan; iget-object v0, p0, LWidgetChoosePlanAdapter$d;->b:Lkotlin/properties/ReadOnlyProperty; sget-object v1, LWidgetChoosePlanAdapter$d;->g:[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; iget-object v1, p1, LWidgetChoosePlanAdapter$Item$Plan;->f:Lcom/android/billingclient/api/SkuDetails; invoke-virtual {v1}, Lcom/android/billingclient/api/SkuDetails;->a()Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V invoke-virtual {p0}, LWidgetChoosePlanAdapter$d;->a()Landroid/widget/TextView; move-result-object v0 sget-object v1, Lcom/discord/utilities/premium/PremiumUtils;->INSTANCE:Lcom/discord/utilities/premium/PremiumUtils; iget-object v2, p0, LWidgetChoosePlanAdapter$d;->a:Lkotlin/properties/ReadOnlyProperty; sget-object v3, LWidgetChoosePlanAdapter$d;->g:[Lkotlin/reflect/KProperty; const/4 v4, 0x0 aget-object v3, v3, v4 invoke-interface {v2, p0, v3}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object; move-result-object v2 check-cast v2, Landroidx/cardview/widget/CardView; invoke-virtual {v2}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context; move-result-object v2 const-string v3, "container.context" invoke-static {v2, v3}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V iget-object v3, p1, LWidgetChoosePlanAdapter$Item$Plan;->f:Lcom/android/billingclient/api/SkuDetails; invoke-virtual {v1, v2, v3}, Lcom/discord/utilities/premium/PremiumUtils;->getPlanPriceText(Landroid/content/Context;Lcom/android/billingclient/api/SkuDetails;)Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V iget-object v0, p0, LWidgetChoosePlanAdapter$d;->d:Lkotlin/properties/ReadOnlyProperty; sget-object v1, LWidgetChoosePlanAdapter$d;->g:[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/ImageView; iget-object v1, p1, LWidgetChoosePlanAdapter$Item$Plan;->e:Lcom/discord/utilities/billing/GooglePlaySku; invoke-virtual {v1}, Lcom/discord/utilities/billing/GooglePlaySku;->getIconDrawableResId()I move-result v1 invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V iget-object v0, p0, LWidgetChoosePlanAdapter$d;->e:Lkotlin/properties/ReadOnlyProperty; sget-object v1, LWidgetChoosePlanAdapter$d;->g:[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/TextView; iget-boolean v1, p1, LWidgetChoosePlanAdapter$Item$Plan;->j:Z if-eqz v1, :cond_0 const/4 v1, 0x0 goto :goto_0 :cond_0 const/16 v1, 0x8 :goto_0 invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V iget-boolean v0, p1, LWidgetChoosePlanAdapter$Item$Plan;->j:Z if-eqz v0, :cond_1 sget-object v0, Lcom/discord/utilities/billing/GooglePlaySku;->Companion:Lcom/discord/utilities/billing/GooglePlaySku$Companion; iget-object v1, p1, LWidgetChoosePlanAdapter$Item$Plan;->e:Lcom/discord/utilities/billing/GooglePlaySku; invoke-virtual {v1}, Lcom/discord/utilities/billing/GooglePlaySku;->getType()Lcom/discord/utilities/billing/GooglePlaySku$Type; move-result-object v1 invoke-virtual {v0, v1}, Lcom/discord/utilities/billing/GooglePlaySku$Companion;->getBorderResource(Lcom/discord/utilities/billing/GooglePlaySku$Type;)I move-result v0 goto :goto_1 :cond_1 const/4 v0, 0x0 :goto_1 iget-object v1, p0, LWidgetChoosePlanAdapter$d;->f:Lkotlin/properties/ReadOnlyProperty; sget-object v2, LWidgetChoosePlanAdapter$d;->g:[Lkotlin/reflect/KProperty; const/4 v3, 0x5 aget-object v2, v2, v3 invoke-interface {v1, p0, v2}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object; move-result-object v1 check-cast v1, Landroid/widget/ImageView; invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setImageResource(I)V iget-object p1, p1, LWidgetChoosePlanAdapter$Item$Plan;->g:Lcom/discord/utilities/billing/GooglePlaySku; if-nez p1, :cond_2 invoke-virtual {p0}, LWidgetChoosePlanAdapter$d;->a()Landroid/widget/TextView; move-result-object v5 const/4 v6, 0x0 const/4 v7, 0x0 const/4 v8, 0x0 const/4 v9, 0x0 const/16 v10, 0xb const/4 v11, 0x0 invoke-static/range {v5 .. v11}, Lcom/discord/utilities/drawable/DrawableCompat;->setCompoundDrawablesCompat$default(Landroid/widget/TextView;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;ILjava/lang/Object;)V goto :goto_2 :cond_2 iget-object p1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; const-string v0, "itemView" invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V const v0, 0x7f0402f1 const/4 v1, 0x2 const/4 v2, 0x0 invoke-static {p1, v0, v4, v1, v2}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/view/View;IIILjava/lang/Object;)I move-result v8 invoke-virtual {p0}, LWidgetChoosePlanAdapter$d;->a()Landroid/widget/TextView; move-result-object v5 const/4 v6, 0x0 const/4 v7, 0x0 const/4 v9, 0x0 const/16 v10, 0xb const/4 v11, 0x0 invoke-static/range {v5 .. v11}, Lcom/discord/utilities/drawable/DrawableCompat;->setCompoundDrawablesCompat$default(Landroid/widget/TextView;IIIIILjava/lang/Object;)V iget-object p1, p0, LWidgetChoosePlanAdapter$d;->a:Lkotlin/properties/ReadOnlyProperty; sget-object v0, LWidgetChoosePlanAdapter$d;->g:[Lkotlin/reflect/KProperty; aget-object v0, v0, v4 invoke-interface {p1, p0, v0}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object; move-result-object p1 check-cast p1, Landroidx/cardview/widget/CardView; new-instance v0, Lm; invoke-direct {v0, p0, p2}, Lm;->(LWidgetChoosePlanAdapter$d;LWidgetChoosePlanAdapter$Item;)V invoke-virtual {p1, v0}, Landroid/widget/FrameLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V :goto_2 return-void .end method