2019-12-21 01:41:59 +00:00
|
|
|
.class public final Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;
|
2019-07-24 11:27:29 +00:00
|
|
|
.super Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;
|
2019-12-21 01:41:59 +00:00
|
|
|
.source "CallParticipantsAdapter.kt"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
2019-12-21 01:41:59 +00:00
|
|
|
accessFlags = 0x19
|
2019-07-24 11:27:29 +00:00
|
|
|
name = "ViewHolderUser"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder<",
|
|
|
|
"Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;",
|
|
|
|
"Lcom/discord/utilities/mg_recycler/MGRecyclerDataPayload;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-12-21 01:41:59 +00:00
|
|
|
.field public final avatar:Lcom/discord/views/VoiceUserView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
.field public final deafenIndicator:Landroid/widget/ImageView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
.field public final liveIndicator:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
.field public final muteIndicator:Landroid/widget/ImageView;
|
|
|
|
|
|
|
|
.field public final name:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
.field public final streamPreview:Lcom/discord/views/StreamPreviewView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-12-21 01:41:59 +00:00
|
|
|
.method public constructor <init>(Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f0d0119
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {p0, v0, p1}, Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;-><init>(ILcom/discord/utilities/mg_recycler/MGRecyclerAdapter;)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f0a096a
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
const-string v0, "itemView.findViewById(R.\u2026er_list_item_user_avatar)"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
check-cast p1, Lcom/discord/views/VoiceUserView;
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->avatar:Lcom/discord/views/VoiceUserView;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f0a096b
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
const-string v0, "itemView.findViewById(R.\u2026user_list_item_user_name)"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
check-cast p1, Landroid/widget/TextView;
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->name:Landroid/widget/TextView;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f0a0968
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string v0, "itemView.findViewById(R.\u2026list_item_live_indicator)"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
check-cast p1, Landroid/widget/TextView;
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->liveIndicator:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f0a0965
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
const-string v0, "itemView.findViewById(R.\u2026st_item_deafen_indicator)"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
check-cast p1, Landroid/widget/ImageView;
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->deafenIndicator:Landroid/widget/ImageView;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f0a0969
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
const-string v0, "itemView.findViewById(R.\u2026list_item_mute_indicator)"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
check-cast p1, Landroid/widget/ImageView;
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->muteIndicator:Landroid/widget/ImageView;
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object p1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
const v0, 0x7f0a096c
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
2019-12-18 09:41:56 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
const-string v0, "itemView.findViewById(R.\u2026item_user_stream_preview)"
|
2019-12-18 09:41:56 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/views/StreamPreviewView;
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->streamPreview:Lcom/discord/views/StreamPreviewView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
2019-12-13 02:35:12 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
:cond_0
|
|
|
|
const-string p1, "adapter"
|
2019-12-18 07:41:41 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-20 07:00:35 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
const/4 p1, 0x0
|
2019-12-20 07:00:35 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
throw p1
|
|
|
|
.end method
|
2019-12-18 09:41:56 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
.method public static final synthetic access$getAdapter$p(Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;)Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;
|
|
|
|
.locals 0
|
2019-12-18 09:41:56 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object p0, p0, Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;->adapter:Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;
|
|
|
|
|
|
|
|
check-cast p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;
|
|
|
|
|
|
|
|
return-object p0
|
2019-12-06 03:29:40 +00:00
|
|
|
.end method
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
.method private final getDeafenIcon(Z)I
|
|
|
|
.locals 4
|
2019-12-06 03:29:40 +00:00
|
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
|
|
.end annotation
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2020-02-20 23:34:33 +00:00
|
|
|
const p1, 0x7f040231
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-02-20 23:34:33 +00:00
|
|
|
const p1, 0x7f040230
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->deafenIndicator:Landroid/widget/ImageView;
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
invoke-static {v0, p1, v1, v2, v3}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/view/View;IIILjava/lang/Object;)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
.method private final getMuteIcon(Z)I
|
|
|
|
.locals 4
|
2019-12-06 03:29:40 +00:00
|
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
|
|
.end annotation
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2020-02-20 23:34:33 +00:00
|
|
|
const p1, 0x7f040240
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-02-20 23:34:33 +00:00
|
|
|
const p1, 0x7f04023e
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->muteIndicator:Landroid/widget/ImageView;
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
invoke-static {v0, p1, v1, v2, v3}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/view/View;IIILjava/lang/Object;)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result p1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
return p1
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onConfigure(ILcom/discord/utilities/mg_recycler/MGRecyclerDataPayload;)V
|
2019-12-21 01:41:59 +00:00
|
|
|
.locals 6
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p2, :cond_a
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-super {p0, p1, p2}, Lcom/discord/utilities/mg_recycler/MGRecyclerViewHolder;->onConfigure(ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
check-cast p2, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ListItemVoiceUser;
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {p2}, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ListItemVoiceUser;->getParticipant()Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
move-result-object p1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object p2, p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->avatar:Lcom/discord/views/VoiceUserView;
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
invoke-static {p2, p1, v2, v1}, Lcom/discord/views/VoiceUserView;->a(Lcom/discord/views/VoiceUserView;Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;II)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object p2, p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->name:Landroid/widget/TextView;
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getDisplayName()Ljava/lang/String;
|
2019-12-13 02:35:12 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
move-result-object v1
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {p2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object p2, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
new-instance v1, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser$onConfigure$1;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-direct {v1, p0, p1}, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser$onConfigure$1;-><init>(Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {p2, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->isConnected()Z
|
2019-10-11 21:55:41 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
move-result p2
|
2019-10-19 01:51:17 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
const/16 v1, 0x8
|
2019-10-19 01:51:17 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
if-eqz p2, :cond_9
|
2019-12-18 07:41:41 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getVoiceState()Lcom/discord/models/domain/ModelVoice$State;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
move-result-object p2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
if-eqz p2, :cond_9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object p2, p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->deafenIndicator:Landroid/widget/ImageView;
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {p2, v2}, Landroid/widget/ImageView;->setVisibility(I)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object p2, p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->muteIndicator:Landroid/widget/ImageView;
|
2019-10-23 04:50:18 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {p2, v2}, Landroid/widget/ImageView;->setVisibility(I)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getVoiceState()Lcom/discord/models/domain/ModelVoice$State;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
move-result-object p2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelVoice$State;->isSelfDeaf()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
move-result v3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
const/4 v4, 0x1
|
|
|
|
|
|
|
|
if-nez v3, :cond_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelVoice$State;->isDeaf()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
move-result v3
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
if-eqz v3, :cond_0
|
2019-10-11 21:55:41 +00:00
|
|
|
|
2019-10-23 04:50:18 +00:00
|
|
|
goto :goto_0
|
2019-10-01 14:15:45 +00:00
|
|
|
|
2019-10-23 04:50:18 +00:00
|
|
|
:cond_0
|
2019-12-21 01:41:59 +00:00
|
|
|
const/4 v3, 0x0
|
2019-10-23 04:50:18 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
2019-10-10 02:17:24 +00:00
|
|
|
|
2019-10-23 04:50:18 +00:00
|
|
|
:cond_1
|
|
|
|
:goto_0
|
2019-12-21 01:41:59 +00:00
|
|
|
const/4 v3, 0x1
|
2019-10-19 01:51:17 +00:00
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
:goto_1
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelVoice$State;->isSelfMute()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
move-result v5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
if-nez v5, :cond_3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelVoice$State;->isMute()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
move-result p2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
if-eqz p2, :cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
goto :goto_2
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
:cond_2
|
|
|
|
const/4 p2, 0x0
|
2019-12-13 02:35:12 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
goto :goto_3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
:cond_3
|
|
|
|
:goto_2
|
|
|
|
const/4 p2, 0x1
|
2019-10-10 02:17:24 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
:goto_3
|
|
|
|
iget-object v5, p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->deafenIndicator:Landroid/widget/ImageView;
|
2019-10-19 01:51:17 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-direct {p0, v3}, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->getDeafenIcon(Z)I
|
2019-12-13 02:35:12 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
move-result v3
|
2019-12-13 02:35:12 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {v5, v3}, Landroid/widget/ImageView;->setImageResource(I)V
|
2019-12-13 02:35:12 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v3, p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->muteIndicator:Landroid/widget/ImageView;
|
2019-12-18 09:41:56 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-direct {p0, p2}, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->getMuteIcon(Z)I
|
2019-12-18 09:41:56 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
move-result p2
|
2019-12-18 09:41:56 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {v3, p2}, Landroid/widget/ImageView;->setImageResource(I)V
|
2019-12-18 09:41:56 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getStreamContext()Lcom/discord/utilities/streams/StreamContext;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
iget-object v3, p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->liveIndicator:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
|
|
|
|
goto :goto_4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-23 04:50:18 +00:00
|
|
|
:cond_4
|
2019-12-21 01:41:59 +00:00
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
if-eqz v4, :cond_5
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
const/16 v4, 0x8
|
2019-12-18 09:41:56 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
:goto_5
|
|
|
|
invoke-virtual {v3, v4}, Landroid/view/View;->setVisibility(I)V
|
2019-12-13 02:35:12 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
if-eqz p2, :cond_6
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Lcom/discord/utilities/streams/StreamContext;->getPreview()Lcom/discord/stores/StoreApplicationStreamPreviews$StreamPreview;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
if-eqz v0, :cond_8
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Lcom/discord/utilities/streams/StreamContext;->getJoinability()Lcom/discord/utilities/streams/StreamContext$Joinability;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
sget-object v3, Lcom/discord/utilities/streams/StreamContext$Joinability;->CAN_CONNECT:Lcom/discord/utilities/streams/StreamContext$Joinability;
|
|
|
|
|
|
|
|
if-eq p2, v3, :cond_7
|
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
iget-object p2, p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->streamPreview:Lcom/discord/views/StreamPreviewView;
|
|
|
|
|
|
|
|
invoke-virtual {p2, v2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
|
|
|
iget-object p2, p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->streamPreview:Lcom/discord/views/StreamPreviewView;
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser$onConfigure$2;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser$onConfigure$2;-><init>(Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;)V
|
|
|
|
|
|
|
|
invoke-virtual {p2, v1}, Landroid/widget/FrameLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->streamPreview:Lcom/discord/views/StreamPreviewView;
|
|
|
|
|
|
|
|
sget-object p2, Lcom/discord/utilities/streams/StreamContext$Joinability;->CAN_CONNECT:Lcom/discord/utilities/streams/StreamContext$Joinability;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0, p2}, Lcom/discord/views/StreamPreviewView;->a(Lcom/discord/stores/StoreApplicationStreamPreviews$StreamPreview;Lcom/discord/utilities/streams/StreamContext$Joinability;)V
|
|
|
|
|
|
|
|
goto :goto_7
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
:goto_6
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->streamPreview:Lcom/discord/views/StreamPreviewView;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->deafenIndicator:Landroid/widget/ImageView;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setVisibility(I)V
|
2019-12-13 02:35:12 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->muteIndicator:Landroid/widget/ImageView;
|
2019-12-18 09:41:56 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setVisibility(I)V
|
2019-12-18 09:41:56 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->streamPreview:Lcom/discord/views/StreamPreviewView;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V
|
|
|
|
|
|
|
|
:goto_7
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
:cond_a
|
|
|
|
const-string p1, "data"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
throw v0
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public bridge synthetic onConfigure(ILjava/lang/Object;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
check-cast p2, Lcom/discord/utilities/mg_recycler/MGRecyclerDataPayload;
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ViewHolderUser;->onConfigure(ILcom/discord/utilities/mg_recycler/MGRecyclerDataPayload;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|