.class public final Lcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelViewHolder; .super Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder; .source "GuildTemplateChannelsView.kt" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/discord/widgets/guilds/create/GuildTemplateChannelsView; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "ChannelViewHolder" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder<", "Lcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelsAdapter;", "Lcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelDataPayload;", ">;" } .end annotation # static fields .field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty; # instance fields .field public final channelImage$delegate:Lkotlin/properties/ReadOnlyProperty; .field public final channelName$delegate:Lkotlin/properties/ReadOnlyProperty; # direct methods .method public static constructor ()V .locals 6 const-class v0, Lcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelViewHolder; const/4 v1, 0x2 new-array v1, v1, [Lkotlin/reflect/KProperty; new-instance v2, Lw/u/b/u; invoke-static {v0}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b; move-result-object v3 const-string v4, "channelImage" const-string v5, "getChannelImage()Landroid/widget/ImageView;" invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;->(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V sget-object v3, Lw/u/b/w;->a:Lw/u/b/x; invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d; const/4 v3, 0x0 aput-object v2, v1, v3 const/4 v2, 0x1 new-instance v3, Lw/u/b/u; invoke-static {v0}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b; move-result-object v0 const-string v4, "channelName" const-string v5, "getChannelName()Landroid/widget/TextView;" invoke-direct {v3, v0, v4, v5}, Lw/u/b/u;->(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V sget-object v0, Lw/u/b/w;->a:Lw/u/b/x; invoke-virtual {v0, v3}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d; aput-object v3, v1, v2 sput-object v1, Lcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelViewHolder;->$$delegatedProperties:[Lkotlin/reflect/KProperty; return-void .end method .method public constructor (ILcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelsAdapter;)V .locals 0 .param p1 # I .annotation build Landroidx/annotation/LayoutRes; .end annotation .end param if-eqz p2, :cond_0 invoke-direct {p0, p1, p2}, Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;->(ILcom/discord/utilities/mg_recycler/MGRecyclerAdapter;)V const p1, 0x7f0a03ec invoke-static {p0, p1}, Lx/a/a2/w;->a(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty; move-result-object p1 iput-object p1, p0, Lcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelViewHolder;->channelImage$delegate:Lkotlin/properties/ReadOnlyProperty; const p1, 0x7f0a03ed invoke-static {p0, p1}, Lx/a/a2/w;->a(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty; move-result-object p1 iput-object p1, p0, Lcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelViewHolder;->channelName$delegate:Lkotlin/properties/ReadOnlyProperty; return-void :cond_0 const-string p1, "adapter" invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V const/4 p1, 0x0 throw p1 .end method .method private final getChannelImage()Landroid/widget/ImageView; .locals 3 iget-object v0, p0, Lcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelViewHolder;->channelImage$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelViewHolder;->$$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 getChannelName()Landroid/widget/TextView; .locals 3 iget-object v0, p0, Lcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelViewHolder;->channelName$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelViewHolder;->$$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/widget/TextView; return-object v0 .end method # virtual methods .method public onConfigure(ILcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelDataPayload;)V .locals 1 if-eqz p2, :cond_2 invoke-super {p0, p1, p2}, Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;->onConfigure(ILjava/lang/Object;)V invoke-direct {p0}, Lcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelViewHolder;->getChannelName()Landroid/widget/TextView; move-result-object p1 invoke-virtual {p2}, Lcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelDataPayload;->getChannel()Lcom/discord/models/domain/ModelChannel; move-result-object v0 invoke-virtual {v0}, Lcom/discord/models/domain/ModelChannel;->getName()Ljava/lang/String; move-result-object v0 invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V invoke-virtual {p2}, Lcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelDataPayload;->getChannel()Lcom/discord/models/domain/ModelChannel; move-result-object p1 invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->isCategory()Z move-result p1 if-eqz p1, :cond_0 invoke-direct {p0}, Lcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelViewHolder;->getChannelImage()Landroid/widget/ImageView; move-result-object p1 const p2, 0x7f08025c invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setImageResource(I)V goto :goto_0 :cond_0 invoke-virtual {p2}, Lcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelDataPayload;->getChannel()Lcom/discord/models/domain/ModelChannel; move-result-object p1 invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->isVoiceChannel()Z move-result p1 if-eqz p1, :cond_1 invoke-direct {p0}, Lcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelViewHolder;->getChannelImage()Landroid/widget/ImageView; move-result-object p1 const p2, 0x7f08024d invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setImageResource(I)V goto :goto_0 :cond_1 invoke-direct {p0}, Lcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelViewHolder;->getChannelImage()Landroid/widget/ImageView; move-result-object p1 const p2, 0x7f080246 invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setImageResource(I)V :goto_0 return-void :cond_2 const-string p1, "data" invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V const/4 p1, 0x0 throw p1 .end method .method public bridge synthetic onConfigure(ILjava/lang/Object;)V .locals 0 check-cast p2, Lcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelDataPayload; invoke-virtual {p0, p1, p2}, Lcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelViewHolder;->onConfigure(ILcom/discord/widgets/guilds/create/GuildTemplateChannelsView$ChannelDataPayload;)V return-void .end method