.class public final Lcom/discord/widgets/settings/billing/PaymentSourceAdapter$PaymentSourceHeaderViewHolder; .super Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder; .source "PaymentSourceAdapter.kt" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/discord/widgets/settings/billing/PaymentSourceAdapter; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "PaymentSourceHeaderViewHolder" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder<", "Lcom/discord/widgets/settings/billing/PaymentSourceAdapter;", "Lcom/discord/widgets/settings/billing/PaymentSourceAdapter$Item;", ">;" } .end annotation # direct methods .method public constructor (Lcom/discord/widgets/settings/billing/PaymentSourceAdapter;)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, 0x7f0d00b9 invoke-direct {p0, v0, p1}, Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;->(ILcom/discord/utilities/mg_recycler/MGRecyclerAdapter;)V return-void .end method # virtual methods .method public onConfigure(ILcom/discord/widgets/settings/billing/PaymentSourceAdapter$Item;)V .locals 1 const-string p1, "data" invoke-static {p2, p1}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V check-cast p2, Lcom/discord/widgets/settings/billing/PaymentSourceAdapter$PaymentSourceHeader; iget-object p1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; if-eqz p1, :cond_2 check-cast p1, Landroid/widget/TextView; invoke-virtual {p2}, Lcom/discord/widgets/settings/billing/PaymentSourceAdapter$PaymentSourceHeader;->getHeaderType()Lcom/discord/widgets/settings/billing/PaymentSourceAdapter$PaymentSourceHeader$Type; move-result-object p2 invoke-virtual {p2}, Ljava/lang/Enum;->ordinal()I move-result p2 if-eqz p2, :cond_1 const/4 v0, 0x1 if-ne p2, v0, :cond_0 const p2, 0x7f121119 goto :goto_0 :cond_0 new-instance p1, Lkotlin/NoWhenBranchMatchedException; invoke-direct {p1}, Lkotlin/NoWhenBranchMatchedException;->()V throw p1 :cond_1 const p2, 0x7f120001 :goto_0 invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(I)V return-void :cond_2 new-instance p1, Ljava/lang/NullPointerException; const-string p2, "null cannot be cast to non-null type android.widget.TextView" invoke-direct {p1, p2}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V throw p1 .end method .method public bridge synthetic onConfigure(ILjava/lang/Object;)V .locals 0 check-cast p2, Lcom/discord/widgets/settings/billing/PaymentSourceAdapter$Item; invoke-virtual {p0, p1, p2}, Lcom/discord/widgets/settings/billing/PaymentSourceAdapter$PaymentSourceHeaderViewHolder;->onConfigure(ILcom/discord/widgets/settings/billing/PaymentSourceAdapter$Item;)V return-void .end method