.class public final Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser; .super Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$Item; .source "WidgetChannelsListAdapter.kt" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "ItemVoiceUser" .end annotation # static fields .field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty; # instance fields .field public final deafenIndicator$delegate:Lkotlin/properties/ReadOnlyProperty; .field public final muteIndicator$delegate:Lkotlin/properties/ReadOnlyProperty; .field public final voiceCamera$delegate:Lkotlin/properties/ReadOnlyProperty; .field public final voiceLive$delegate:Lkotlin/properties/ReadOnlyProperty; .field public final voiceUserAvatar$delegate:Lkotlin/properties/ReadOnlyProperty; .field public final voiceUserName$delegate:Lkotlin/properties/ReadOnlyProperty; # direct methods .method public static constructor ()V .locals 6 const-class v0, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser; const/4 v1, 0x6 new-array v1, v1, [Lkotlin/reflect/KProperty; new-instance v2, Lk0/n/c/q; invoke-static {v0}, Lk0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lk0/r/b; move-result-object v3 const-string v4, "voiceUserAvatar" const-string v5, "getVoiceUserAvatar()Landroid/widget/ImageView;" invoke-direct {v2, v3, v4, v5}, Lk0/n/c/q;->(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V invoke-static {v2}, Lk0/n/c/s;->property1(Lk0/n/c/p;)Lk0/r/d; const/4 v3, 0x0 aput-object v2, v1, v3 new-instance v2, Lk0/n/c/q; invoke-static {v0}, Lk0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lk0/r/b; move-result-object v3 const-string v4, "voiceUserName" const-string v5, "getVoiceUserName()Landroid/widget/TextView;" invoke-direct {v2, v3, v4, v5}, Lk0/n/c/q;->(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V invoke-static {v2}, Lk0/n/c/s;->property1(Lk0/n/c/p;)Lk0/r/d; const/4 v3, 0x1 aput-object v2, v1, v3 new-instance v2, Lk0/n/c/q; invoke-static {v0}, Lk0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lk0/r/b; move-result-object v3 const-string v4, "voiceCamera" const-string v5, "getVoiceCamera()Landroid/view/View;" invoke-direct {v2, v3, v4, v5}, Lk0/n/c/q;->(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V invoke-static {v2}, Lk0/n/c/s;->property1(Lk0/n/c/p;)Lk0/r/d; const/4 v3, 0x2 aput-object v2, v1, v3 new-instance v2, Lk0/n/c/q; invoke-static {v0}, Lk0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lk0/r/b; move-result-object v3 const-string v4, "deafenIndicator" const-string v5, "getDeafenIndicator()Landroid/view/View;" invoke-direct {v2, v3, v4, v5}, Lk0/n/c/q;->(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V invoke-static {v2}, Lk0/n/c/s;->property1(Lk0/n/c/p;)Lk0/r/d; const/4 v3, 0x3 aput-object v2, v1, v3 new-instance v2, Lk0/n/c/q; invoke-static {v0}, Lk0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lk0/r/b; move-result-object v3 const-string v4, "muteIndicator" const-string v5, "getMuteIndicator()Landroid/view/View;" invoke-direct {v2, v3, v4, v5}, Lk0/n/c/q;->(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V invoke-static {v2}, Lk0/n/c/s;->property1(Lk0/n/c/p;)Lk0/r/d; const/4 v3, 0x4 aput-object v2, v1, v3 new-instance v2, Lk0/n/c/q; invoke-static {v0}, Lk0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lk0/r/b; move-result-object v0 const-string v3, "voiceLive" const-string v4, "getVoiceLive()Landroid/view/View;" invoke-direct {v2, v0, v3, v4}, Lk0/n/c/q;->(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V invoke-static {v2}, Lk0/n/c/s;->property1(Lk0/n/c/p;)Lk0/r/d; const/4 v0, 0x5 aput-object v2, v1, v0 sput-object v1, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->$$delegatedProperties:[Lkotlin/reflect/KProperty; return-void .end method .method public constructor (ILcom/discord/widgets/channels/list/WidgetChannelsListAdapter;)V .locals 0 if-eqz p2, :cond_0 invoke-direct {p0, p1, p2}, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$Item;->(ILcom/discord/widgets/channels/list/WidgetChannelsListAdapter;)V const p1, 0x7f0a01ca invoke-static {p0, p1}, Lf/n/a/k/a;->k(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty; move-result-object p1 iput-object p1, p0, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->voiceUserAvatar$delegate:Lkotlin/properties/ReadOnlyProperty; const p1, 0x7f0a01cf invoke-static {p0, p1}, Lf/n/a/k/a;->k(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty; move-result-object p1 iput-object p1, p0, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->voiceUserName$delegate:Lkotlin/properties/ReadOnlyProperty; const p1, 0x7f0a01cb invoke-static {p0, p1}, Lf/n/a/k/a;->k(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty; move-result-object p1 iput-object p1, p0, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->voiceCamera$delegate:Lkotlin/properties/ReadOnlyProperty; const p1, 0x7f0a01cc invoke-static {p0, p1}, Lf/n/a/k/a;->k(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty; move-result-object p1 iput-object p1, p0, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->deafenIndicator$delegate:Lkotlin/properties/ReadOnlyProperty; const p1, 0x7f0a01ce invoke-static {p0, p1}, Lf/n/a/k/a;->k(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty; move-result-object p1 iput-object p1, p0, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->muteIndicator$delegate:Lkotlin/properties/ReadOnlyProperty; const p1, 0x7f0a01cd invoke-static {p0, p1}, Lf/n/a/k/a;->k(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)Lkotlin/properties/ReadOnlyProperty; move-result-object p1 iput-object p1, p0, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->voiceLive$delegate:Lkotlin/properties/ReadOnlyProperty; return-void :cond_0 const-string p1, "adapter" invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V const/4 p1, 0x0 throw p1 .end method .method private final getDeafenIndicator()Landroid/view/View; .locals 3 iget-object v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->deafenIndicator$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->$$delegatedProperties:[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/view/View; return-object v0 .end method .method private final getMuteIndicator()Landroid/view/View; .locals 3 iget-object v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->muteIndicator$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->$$delegatedProperties:[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/view/View; return-object v0 .end method .method private final getVoiceCamera()Landroid/view/View; .locals 3 iget-object v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->voiceCamera$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->$$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/view/View; return-object v0 .end method .method private final getVoiceLive()Landroid/view/View; .locals 3 iget-object v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->voiceLive$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->$$delegatedProperties:[Lkotlin/reflect/KProperty; const/4 v2, 0x5 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 getVoiceUserAvatar()Landroid/widget/ImageView; .locals 3 iget-object v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->voiceUserAvatar$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->$$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 getVoiceUserName()Landroid/widget/TextView; .locals 3 iget-object v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->voiceUserName$delegate:Lkotlin/properties/ReadOnlyProperty; sget-object v1, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->$$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/channels/list/items/ChannelListItem;)V .locals 11 if-eqz p2, :cond_7 invoke-super {p0, p1, p2}, Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;->onConfigure(ILjava/lang/Object;)V check-cast p2, Lcom/discord/widgets/channels/list/items/ChannelListItemVoiceUser; invoke-virtual {p2}, Lcom/discord/widgets/channels/list/items/ChannelListItemVoiceUser;->component1()Lcom/discord/models/domain/ModelChannel; move-result-object p1 invoke-virtual {p2}, Lcom/discord/widgets/channels/list/items/ChannelListItemVoiceUser;->component2()Lcom/discord/models/domain/ModelVoice$State; move-result-object v0 invoke-virtual {p2}, Lcom/discord/widgets/channels/list/items/ChannelListItemVoiceUser;->component3()Lcom/discord/models/domain/ModelUser; move-result-object v8 invoke-virtual {p2}, Lcom/discord/widgets/channels/list/items/ChannelListItemVoiceUser;->component4()Lcom/discord/models/domain/ModelGuildMember$Computed; move-result-object v9 invoke-virtual {p2}, Lcom/discord/widgets/channels/list/items/ChannelListItemVoiceUser;->component5()Z move-result v10 invoke-virtual {p2}, Lcom/discord/widgets/channels/list/items/ChannelListItemVoiceUser;->component6()Z move-result p2 invoke-direct {p0}, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->getVoiceUserAvatar()Landroid/widget/ImageView; move-result-object v1 const v3, 0x7f07005b const/4 v4, 0x0 const/4 v5, 0x0 const/16 v6, 0x18 const/4 v7, 0x0 move-object v2, v8 invoke-static/range {v1 .. v7}, Lcom/discord/utilities/icon/IconUtils;->setIcon$default(Landroid/widget/ImageView;Lcom/discord/models/domain/ModelUser;ILkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;ILjava/lang/Object;)V invoke-direct {p0}, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->getVoiceUserName()Landroid/widget/TextView; move-result-object v1 invoke-virtual {v8, v9, p1}, Lcom/discord/models/domain/ModelUser;->getNickOrUsername(Lcom/discord/models/domain/ModelGuildMember$Computed;Lcom/discord/models/domain/ModelChannel;)Ljava/lang/String; move-result-object p1 invoke-virtual {v1, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V invoke-direct {p0}, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->getVoiceCamera()Landroid/view/View; move-result-object p1 invoke-virtual {v0}, Lcom/discord/models/domain/ModelVoice$State;->isSelfVideo()Z move-result v1 const/16 v2, 0x8 const/4 v3, 0x0 if-eqz v1, :cond_0 const/4 v1, 0x0 goto :goto_0 :cond_0 const/16 v1, 0x8 :goto_0 invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V invoke-direct {p0}, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->getMuteIndicator()Landroid/view/View; move-result-object p1 invoke-virtual {v0}, Lcom/discord/models/domain/ModelVoice$State;->isMutedByAnySource()Z move-result v1 if-eqz v1, :cond_1 const/4 v1, 0x0 goto :goto_1 :cond_1 const/16 v1, 0x8 :goto_1 invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V invoke-direct {p0}, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->getDeafenIndicator()Landroid/view/View; move-result-object p1 invoke-virtual {v0}, Lcom/discord/models/domain/ModelVoice$State;->isSelfDeaf()Z move-result v1 const/4 v4, 0x1 if-nez v1, :cond_3 invoke-virtual {v0}, Lcom/discord/models/domain/ModelVoice$State;->isDeaf()Z move-result v0 if-eqz v0, :cond_2 goto :goto_2 :cond_2 const/4 v0, 0x0 goto :goto_3 :cond_3 :goto_2 const/4 v0, 0x1 :goto_3 if-eqz v0, :cond_4 const/4 v0, 0x0 goto :goto_4 :cond_4 const/16 v0, 0x8 :goto_4 invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V invoke-direct {p0}, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->getVoiceLive()Landroid/view/View; move-result-object p1 if-eqz v10, :cond_5 if-eqz p2, :cond_5 goto :goto_5 :cond_5 const/4 v4, 0x0 :goto_5 if-eqz v4, :cond_6 const/4 v2, 0x0 :cond_6 invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V return-void :cond_7 const-string p1, "data" invoke-static {p1}, Lk0/n/c/h;->c(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/channels/list/items/ChannelListItem; invoke-virtual {p0, p1, p2}, Lcom/discord/widgets/channels/list/WidgetChannelsListAdapter$ItemVoiceUser;->onConfigure(ILcom/discord/widgets/channels/list/items/ChannelListItem;)V return-void .end method