1920 lines
56 KiB
Smali
1920 lines
56 KiB
Smali
.class public final Lcom/discord/views/video/VideoCallParticipantView;
|
|
.super Landroidx/constraintlayout/widget/ConstraintLayout;
|
|
.source "VideoCallParticipantView.kt"
|
|
|
|
# interfaces
|
|
.implements Lcom/discord/utilities/view/grid/FrameGridLayout$DataView;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic w:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
# instance fields
|
|
.field public final d:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final e:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final f:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final g:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final h:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final i:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final j:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final k:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final l:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final m:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final n:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final o:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final p:Z
|
|
|
|
.field public q:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;
|
|
|
|
.field public r:Ljava/lang/String;
|
|
|
|
.field public s:Lkotlin/jvm/functions/Function1;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-",
|
|
"Ljava/lang/String;",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public t:Lrx/Subscription;
|
|
|
|
.field public u:Z
|
|
|
|
.field public v:Lrx/Subscription;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 5
|
|
|
|
const/16 v0, 0xc
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v1, Lj0/n/c/q;
|
|
|
|
const-class v2, Lcom/discord/views/video/VideoCallParticipantView;
|
|
|
|
invoke-static {v2}, Lj0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lj0/r/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string/jumbo v3, "voiceUserView"
|
|
|
|
const-string v4, "getVoiceUserView()Lcom/discord/views/VoiceUserView;"
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lj0/n/c/q;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-static {v1}, Lj0/n/c/s;->property1(Lj0/n/c/p;)Lj0/r/d;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Lj0/n/c/q;
|
|
|
|
const-class v2, Lcom/discord/views/video/VideoCallParticipantView;
|
|
|
|
invoke-static {v2}, Lj0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lj0/r/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "backgroundAvatar"
|
|
|
|
const-string v4, "getBackgroundAvatar()Landroid/view/View;"
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lj0/n/c/q;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-static {v1}, Lj0/n/c/s;->property1(Lj0/n/c/p;)Lj0/r/d;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Lj0/n/c/q;
|
|
|
|
const-class v2, Lcom/discord/views/video/VideoCallParticipantView;
|
|
|
|
invoke-static {v2}, Lj0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lj0/r/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "loadingIndicator"
|
|
|
|
const-string v4, "getLoadingIndicator()Landroid/view/View;"
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lj0/n/c/q;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-static {v1}, Lj0/n/c/s;->property1(Lj0/n/c/p;)Lj0/r/d;
|
|
|
|
const/4 v2, 0x2
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Lj0/n/c/q;
|
|
|
|
const-class v2, Lcom/discord/views/video/VideoCallParticipantView;
|
|
|
|
invoke-static {v2}, Lj0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lj0/r/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "letterbox"
|
|
|
|
const-string v4, "getLetterbox()Landroid/view/View;"
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lj0/n/c/q;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-static {v1}, Lj0/n/c/s;->property1(Lj0/n/c/p;)Lj0/r/d;
|
|
|
|
const/4 v2, 0x3
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Lj0/n/c/q;
|
|
|
|
const-class v2, Lcom/discord/views/video/VideoCallParticipantView;
|
|
|
|
invoke-static {v2}, Lj0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lj0/r/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string/jumbo v3, "videoStreamRenderer"
|
|
|
|
const-string v4, "getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;"
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lj0/n/c/q;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-static {v1}, Lj0/n/c/s;->property1(Lj0/n/c/p;)Lj0/r/d;
|
|
|
|
const/4 v2, 0x4
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Lj0/n/c/q;
|
|
|
|
const-class v2, Lcom/discord/views/video/VideoCallParticipantView;
|
|
|
|
invoke-static {v2}, Lj0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lj0/r/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "applicationStreamPreviewImage"
|
|
|
|
const-string v4, "getApplicationStreamPreviewImage()Lcom/facebook/drawee/view/SimpleDraweeView;"
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lj0/n/c/q;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-static {v1}, Lj0/n/c/s;->property1(Lj0/n/c/p;)Lj0/r/d;
|
|
|
|
const/4 v2, 0x5
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Lj0/n/c/q;
|
|
|
|
const-class v2, Lcom/discord/views/video/VideoCallParticipantView;
|
|
|
|
invoke-static {v2}, Lj0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lj0/r/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "applicationStreamPreviewText"
|
|
|
|
const-string v4, "getApplicationStreamPreviewText()Landroid/widget/TextView;"
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lj0/n/c/q;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-static {v1}, Lj0/n/c/s;->property1(Lj0/n/c/p;)Lj0/r/d;
|
|
|
|
const/4 v2, 0x6
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Lj0/n/c/q;
|
|
|
|
const-class v2, Lcom/discord/views/video/VideoCallParticipantView;
|
|
|
|
invoke-static {v2}, Lj0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lj0/r/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "muteStatusIndicator"
|
|
|
|
const-string v4, "getMuteStatusIndicator()Landroid/widget/ImageView;"
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lj0/n/c/q;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-static {v1}, Lj0/n/c/s;->property1(Lj0/n/c/p;)Lj0/r/d;
|
|
|
|
const/4 v2, 0x7
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Lj0/n/c/q;
|
|
|
|
const-class v2, Lcom/discord/views/video/VideoCallParticipantView;
|
|
|
|
invoke-static {v2}, Lj0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lj0/r/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "deafenStatusIndicator"
|
|
|
|
const-string v4, "getDeafenStatusIndicator()Landroid/widget/ImageView;"
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lj0/n/c/q;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-static {v1}, Lj0/n/c/s;->property1(Lj0/n/c/p;)Lj0/r/d;
|
|
|
|
const/16 v2, 0x8
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Lj0/n/c/q;
|
|
|
|
const-class v2, Lcom/discord/views/video/VideoCallParticipantView;
|
|
|
|
invoke-static {v2}, Lj0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lj0/r/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "liveIndicator"
|
|
|
|
const-string v4, "getLiveIndicator()Landroid/widget/TextView;"
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lj0/n/c/q;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-static {v1}, Lj0/n/c/s;->property1(Lj0/n/c/p;)Lj0/r/d;
|
|
|
|
const/16 v2, 0x9
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Lj0/n/c/q;
|
|
|
|
const-class v2, Lcom/discord/views/video/VideoCallParticipantView;
|
|
|
|
invoke-static {v2}, Lj0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lj0/r/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "applicationStreamPaused"
|
|
|
|
const-string v4, "getApplicationStreamPaused()Landroid/view/View;"
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lj0/n/c/q;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-static {v1}, Lj0/n/c/s;->property1(Lj0/n/c/p;)Lj0/r/d;
|
|
|
|
const/16 v2, 0xa
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Lj0/n/c/q;
|
|
|
|
const-class v2, Lcom/discord/views/video/VideoCallParticipantView;
|
|
|
|
invoke-static {v2}, Lj0/n/c/s;->getOrCreateKotlinClass(Ljava/lang/Class;)Lj0/r/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string/jumbo v3, "videoLabel"
|
|
|
|
const-string v4, "getVideoLabel()Landroid/widget/TextView;"
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lj0/n/c/q;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-static {v1}, Lj0/n/c/s;->property1(Lj0/n/c/p;)Lj0/r/d;
|
|
|
|
const/16 v2, 0xb
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
sput-object v0, Lcom/discord/views/video/VideoCallParticipantView;->w:[Lkotlin/reflect/KProperty;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x4
|
|
|
|
invoke-direct {p0, p1, p2, v0, v1}, Lcom/discord/views/video/VideoCallParticipantView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
|
|
.locals 2
|
|
|
|
and-int/lit8 v0, p4, 0x2
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
move-object p2, v1
|
|
|
|
:cond_0
|
|
and-int/lit8 p4, p4, 0x4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
const/4 p3, 0x0
|
|
|
|
:cond_1
|
|
if-eqz p1, :cond_3
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Landroidx/constraintlayout/widget/ConstraintLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
const p3, 0x7f0a0682
|
|
|
|
invoke-static {p0, p3}, Lf/n/a/k/a;->h(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object p3
|
|
|
|
iput-object p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->d:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const p3, 0x7f0a0676
|
|
|
|
invoke-static {p0, p3}, Lf/n/a/k/a;->h(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object p3
|
|
|
|
iput-object p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->e:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const p3, 0x7f0a067f
|
|
|
|
invoke-static {p0, p3}, Lf/n/a/k/a;->h(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object p3
|
|
|
|
iput-object p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->f:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const p3, 0x7f0a0677
|
|
|
|
invoke-static {p0, p3}, Lf/n/a/k/a;->h(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object p3
|
|
|
|
iput-object p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->g:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const p3, 0x7f0a0680
|
|
|
|
invoke-static {p0, p3}, Lf/n/a/k/a;->h(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object p3
|
|
|
|
iput-object p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->h:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const p3, 0x7f0a067c
|
|
|
|
invoke-static {p0, p3}, Lf/n/a/k/a;->h(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object p3
|
|
|
|
iput-object p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->i:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const p3, 0x7f0a067d
|
|
|
|
invoke-static {p0, p3}, Lf/n/a/k/a;->h(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object p3
|
|
|
|
iput-object p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->j:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const p3, 0x7f0a067a
|
|
|
|
invoke-static {p0, p3}, Lf/n/a/k/a;->h(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object p3
|
|
|
|
iput-object p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->k:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const p3, 0x7f0a0678
|
|
|
|
invoke-static {p0, p3}, Lf/n/a/k/a;->h(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object p3
|
|
|
|
iput-object p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->l:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const p3, 0x7f0a0679
|
|
|
|
invoke-static {p0, p3}, Lf/n/a/k/a;->h(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object p3
|
|
|
|
iput-object p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->m:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const p3, 0x7f0a067b
|
|
|
|
invoke-static {p0, p3}, Lf/n/a/k/a;->h(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object p3
|
|
|
|
iput-object p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->n:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const p3, 0x7f0a067e
|
|
|
|
invoke-static {p0, p3}, Lf/n/a/k/a;->h(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object p3
|
|
|
|
iput-object p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->o:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object p3, Lf/a/n/n0/g;->d:Lf/a/n/n0/g;
|
|
|
|
iput-object p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->s:Lkotlin/jvm/functions/Function1;
|
|
|
|
const p3, 0x7f0d0144
|
|
|
|
invoke-static {p1, p3, p0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
sget-object p3, Lcom/discord/R$a;->VideoCallParticipantView:[I
|
|
|
|
invoke-virtual {p1, p2, p3, v0, v0}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, v0, v0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result p2
|
|
|
|
const/4 p3, 0x1
|
|
|
|
invoke-virtual {p1, p3, v0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result p3
|
|
|
|
iput-boolean p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->p:Z
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
move v0, p2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
iput-boolean v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->p:Z
|
|
|
|
:goto_0
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/views/video/AppVideoStreamRenderer;->setIsOverlay(Z)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
move-result-object p1
|
|
|
|
iget-boolean p2, p0, Lcom/discord/views/video/VideoCallParticipantView;->p:Z
|
|
|
|
invoke-virtual {p1, p2}, Lcom/discord/views/video/AppVideoStreamRenderer;->setMatchVideoOrientation(Z)V
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public static final synthetic a(Lcom/discord/views/video/VideoCallParticipantView;)Landroid/view/View;
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getBackgroundAvatar()Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final b(Lcom/discord/views/video/VideoCallParticipantView;Landroid/graphics/Point;)V
|
|
.locals 4
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLetterbox()Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLoadingIndicator()Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
const/16 v2, 0x8
|
|
|
|
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewImage()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewText()Landroid/widget/TextView;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
iget v0, p1, Landroid/graphics/Point;->x:I
|
|
|
|
iget p1, p1, Landroid/graphics/Point;->y:I
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-le v0, p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getHeight()I
|
|
|
|
move-result v3
|
|
|
|
if-le v0, v3, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
if-eq p1, v0, :cond_2
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_2
|
|
iget-boolean p1, p0, Lcom/discord/views/video/VideoCallParticipantView;->p:Z
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getHeight()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I
|
|
|
|
move-result v1
|
|
|
|
iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p0
|
|
|
|
iput p1, p0, Landroid/view/ViewGroup$LayoutParams;->width:I
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method private final getApplicationStreamPaused()Landroid/view/View;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->n:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->w:[Lkotlin/reflect/KProperty;
|
|
|
|
const/16 v2, 0xa
|
|
|
|
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 getApplicationStreamPreviewImage()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->i:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->w:[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, Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getApplicationStreamPreviewText()Landroid/widget/TextView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->j:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->w:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x6
|
|
|
|
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 private final getBackgroundAvatar()Landroid/view/View;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->e:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->w:[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/view/View;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getDeafenStatusIndicator()Landroid/widget/ImageView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->l:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->w:[Lkotlin/reflect/KProperty;
|
|
|
|
const/16 v2, 0x8
|
|
|
|
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 getLetterbox()Landroid/view/View;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->g:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->w:[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 getLiveIndicator()Landroid/widget/TextView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->m:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->w:[Lkotlin/reflect/KProperty;
|
|
|
|
const/16 v2, 0x9
|
|
|
|
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 private final getLoadingIndicator()Landroid/view/View;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->f:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->w:[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 getMuteStatusIndicator()Landroid/widget/ImageView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->k:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->w:[Lkotlin/reflect/KProperty;
|
|
|
|
const/4 v2, 0x7
|
|
|
|
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 getVideoLabel()Landroid/widget/TextView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->o:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->w:[Lkotlin/reflect/KProperty;
|
|
|
|
const/16 v2, 0xb
|
|
|
|
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 private final getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->h:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->w:[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, Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getVoiceUserView()Lcom/discord/views/VoiceUserView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->d:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->w:[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, Lcom/discord/views/VoiceUserView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final getData()Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->q:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getDataId()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->q:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, v0, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->a:Ljava/lang/String;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public onBind(Lcom/discord/utilities/view/grid/FrameGridLayout$Data;)V
|
|
.locals 0
|
|
|
|
check-cast p1, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/views/video/VideoCallParticipantView;->set(Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onDetachedFromWindow()V
|
|
.locals 3
|
|
|
|
invoke-super {p0}, Landroid/view/ViewGroup;->onDetachedFromWindow()V
|
|
|
|
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->t:Lrx/Subscription;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {v0}, Lrx/Subscription;->unsubscribe()V
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->u:Z
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v1, v2, v2, v2, v0}, Lcom/discord/views/video/AppVideoStreamRenderer;->c(Ljava/lang/Integer;Lorg/webrtc/RendererCommon$ScalingType;Lorg/webrtc/RendererCommon$ScalingType;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onRemove()V
|
|
.locals 0
|
|
|
|
invoke-static {p0}, Lcom/discord/utilities/view/grid/FrameGridLayout$DataView$DefaultImpls;->onRemove(Lcom/discord/utilities/view/grid/FrameGridLayout$DataView;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final set(Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;)V
|
|
.locals 12
|
|
.annotation build Landroidx/annotation/UiThread;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object v1, p1, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->b:Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v1, v0
|
|
|
|
:goto_0
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVoiceUserView()Lcom/discord/views/VoiceUserView;
|
|
|
|
move-result-object v2
|
|
|
|
new-instance v3, Lf/a/n/n0/h;
|
|
|
|
invoke-direct {v3, v1}, Lf/a/n/n0/h;-><init>(Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;)V
|
|
|
|
invoke-virtual {v2, v3}, Lcom/discord/views/VoiceUserView;->setOnBitmapLoadedListener(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVoiceUserView()Lcom/discord/views/VoiceUserView;
|
|
|
|
move-result-object v2
|
|
|
|
const v3, 0x7f070057
|
|
|
|
invoke-virtual {v2, v1, v3}, Lcom/discord/views/VoiceUserView;->a(Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;I)V
|
|
|
|
iget-object v2, p0, Lcom/discord/views/video/VideoCallParticipantView;->t:Lrx/Subscription;
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
invoke-interface {v2}, Lrx/Subscription;->unsubscribe()V
|
|
|
|
:cond_1
|
|
sget-object v2, Lcom/discord/widgets/voice/fullscreen/UserRepresentativeColors;->INSTANCE:Lcom/discord/widgets/voice/fullscreen/UserRepresentativeColors;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
move-result-wide v3
|
|
|
|
invoke-virtual {v2, v3, v4}, Lcom/discord/widgets/voice/fullscreen/UserRepresentativeColors;->observeRepresentativeColorForUser(J)Lrx/Observable;
|
|
|
|
move-result-object v2
|
|
|
|
sget-object v3, Lf/a/n/n0/i;->d:Lf/a/n/n0/i;
|
|
|
|
invoke-virtual {v2, v3}, Lrx/Observable;->W(Lr0/k/b;)Lrx/Observable;
|
|
|
|
move-result-object v2
|
|
|
|
new-instance v3, Lf/a/n/n0/j;
|
|
|
|
invoke-direct {v3, p0}, Lf/a/n/n0/j;-><init>(Lcom/discord/views/video/VideoCallParticipantView;)V
|
|
|
|
invoke-virtual {v2, v3}, Lrx/Observable;->Q(Lrx/functions/Action1;)Lrx/Subscription;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, p0, Lcom/discord/views/video/VideoCallParticipantView;->t:Lrx/Subscription;
|
|
|
|
:cond_2
|
|
if-eqz v1, :cond_3
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move-object v2, v0
|
|
|
|
:goto_1
|
|
const/4 v3, 0x6
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-static {v2, v4, v0, v3, v0}, Lcom/discord/utilities/icon/IconUtils;->getForUser$default(Lcom/discord/models/domain/ModelUser;ZLjava/lang/Integer;ILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p0, Lcom/discord/views/video/VideoCallParticipantView;->r:Ljava/lang/String;
|
|
|
|
invoke-static {v2, v3}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
const/4 v5, 0x1
|
|
|
|
xor-int/2addr v3, v5
|
|
|
|
if-eqz v3, :cond_4
|
|
|
|
iput-object v2, p0, Lcom/discord/views/video/VideoCallParticipantView;->r:Ljava/lang/String;
|
|
|
|
:cond_4
|
|
if-eqz v1, :cond_5
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->isMuted()Z
|
|
|
|
move-result v2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
const/4 v2, 0x0
|
|
|
|
:goto_2
|
|
if-eqz v1, :cond_6
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->isDeafened()Z
|
|
|
|
move-result v3
|
|
|
|
goto :goto_3
|
|
|
|
:cond_6
|
|
const/4 v3, 0x0
|
|
|
|
:goto_3
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getMuteStatusIndicator()Landroid/widget/ImageView;
|
|
|
|
move-result-object v6
|
|
|
|
const/16 v7, 0x8
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
const/4 v2, 0x0
|
|
|
|
goto :goto_4
|
|
|
|
:cond_7
|
|
const/16 v2, 0x8
|
|
|
|
:goto_4
|
|
invoke-virtual {v6, v2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getDeafenStatusIndicator()Landroid/widget/ImageView;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v3, :cond_8
|
|
|
|
const/4 v3, 0x0
|
|
|
|
goto :goto_5
|
|
|
|
:cond_8
|
|
const/16 v3, 0x8
|
|
|
|
:goto_5
|
|
invoke-virtual {v2, v3}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
iget-object v2, p0, Lcom/discord/views/video/VideoCallParticipantView;->q:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;
|
|
|
|
if-eqz v2, :cond_9
|
|
|
|
iget-object v2, v2, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->g:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData$Type;
|
|
|
|
if-eqz v2, :cond_9
|
|
|
|
goto :goto_6
|
|
|
|
:cond_9
|
|
sget-object v2, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData$Type;->DEFAULT:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData$Type;
|
|
|
|
:goto_6
|
|
iget-object v3, p0, Lcom/discord/views/video/VideoCallParticipantView;->q:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;
|
|
|
|
if-eqz v3, :cond_a
|
|
|
|
iget-boolean v3, v3, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->i:Z
|
|
|
|
if-ne v3, v5, :cond_a
|
|
|
|
const/4 v3, 0x1
|
|
|
|
goto :goto_7
|
|
|
|
:cond_a
|
|
const/4 v3, 0x0
|
|
|
|
:goto_7
|
|
iget-object v6, p0, Lcom/discord/views/video/VideoCallParticipantView;->q:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;
|
|
|
|
if-eqz v6, :cond_b
|
|
|
|
invoke-virtual {v6}, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->b()Ljava/lang/Integer;
|
|
|
|
move-result-object v6
|
|
|
|
goto :goto_8
|
|
|
|
:cond_b
|
|
move-object v6, v0
|
|
|
|
:goto_8
|
|
iput-object p1, p0, Lcom/discord/views/video/VideoCallParticipantView;->q:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;
|
|
|
|
if-eqz p1, :cond_c
|
|
|
|
invoke-virtual {p1}, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->b()Ljava/lang/Integer;
|
|
|
|
move-result-object v8
|
|
|
|
goto :goto_9
|
|
|
|
:cond_c
|
|
move-object v8, v0
|
|
|
|
:goto_9
|
|
if-eqz p1, :cond_d
|
|
|
|
invoke-virtual {p1}, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->b()Ljava/lang/Integer;
|
|
|
|
move-result-object v9
|
|
|
|
goto :goto_a
|
|
|
|
:cond_d
|
|
move-object v9, v0
|
|
|
|
:goto_a
|
|
invoke-static {v9, v6}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v6
|
|
|
|
xor-int/2addr v6, v5
|
|
|
|
if-eqz v6, :cond_11
|
|
|
|
if-eqz v9, :cond_10
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLetterbox()Landroid/view/View;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewImage()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-virtual {v9}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v9
|
|
|
|
if-nez v9, :cond_e
|
|
|
|
const/4 v9, 0x1
|
|
|
|
goto :goto_b
|
|
|
|
:cond_e
|
|
const/4 v9, 0x0
|
|
|
|
:goto_b
|
|
xor-int/2addr v9, v5
|
|
|
|
if-eqz v9, :cond_f
|
|
|
|
const/4 v9, 0x0
|
|
|
|
goto :goto_c
|
|
|
|
:cond_f
|
|
const/16 v9, 0x8
|
|
|
|
:goto_c
|
|
invoke-virtual {v6, v9}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLoadingIndicator()Landroid/view/View;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v4}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
goto :goto_d
|
|
|
|
:cond_10
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLetterbox()Landroid/view/View;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLoadingIndicator()Landroid/view/View;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:cond_11
|
|
:goto_d
|
|
if-eqz p1, :cond_12
|
|
|
|
iget-object v6, p1, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->g:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData$Type;
|
|
|
|
goto :goto_e
|
|
|
|
:cond_12
|
|
move-object v6, v0
|
|
|
|
:goto_e
|
|
sget-object v9, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData$Type;->APPLICATION_STREAMING:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData$Type;
|
|
|
|
if-ne v6, v9, :cond_1d
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getBackgroundAvatar()Landroid/view/View;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVoiceUserView()Lcom/discord/views/VoiceUserView;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
iget-object v6, p1, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->f:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData$ApplicationStreamState;
|
|
|
|
if-nez v6, :cond_13
|
|
|
|
goto/16 :goto_14
|
|
|
|
:cond_13
|
|
invoke-virtual {v6}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_1b
|
|
|
|
if-eq v6, v5, :cond_19
|
|
|
|
const/4 v9, 0x2
|
|
|
|
if-eq v6, v9, :cond_16
|
|
|
|
const/4 v9, 0x3
|
|
|
|
if-eq v6, v9, :cond_14
|
|
|
|
goto/16 :goto_14
|
|
|
|
:cond_14
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLoadingIndicator()Landroid/view/View;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewImage()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v4}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewText()Landroid/widget/TextView;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPaused()Landroid/view/View;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v4}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLiveIndicator()Landroid/widget/TextView;
|
|
|
|
move-result-object v6
|
|
|
|
iget-boolean v9, p1, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->i:Z
|
|
|
|
xor-int/2addr v9, v5
|
|
|
|
if-eqz v9, :cond_15
|
|
|
|
const/4 v9, 0x0
|
|
|
|
goto :goto_f
|
|
|
|
:cond_15
|
|
const/16 v9, 0x8
|
|
|
|
:goto_f
|
|
invoke-virtual {v6, v9}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
goto/16 :goto_14
|
|
|
|
:cond_16
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLoadingIndicator()Landroid/view/View;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewImage()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v4}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewText()Landroid/widget/TextView;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v4}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPaused()Landroid/view/View;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLiveIndicator()Landroid/widget/TextView;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewText()Landroid/widget/TextView;
|
|
|
|
move-result-object v6
|
|
|
|
new-instance v9, Lf/a/n/n0/k;
|
|
|
|
invoke-direct {v9, p0, p1}, Lf/a/n/n0/k;-><init>(Lcom/discord/views/video/VideoCallParticipantView;Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;)V
|
|
|
|
invoke-virtual {v6, v9}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
iget-object v6, p1, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->b:Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
|
|
|
|
invoke-virtual {v6}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getStreamContext()Lcom/discord/utilities/streams/StreamContext;
|
|
|
|
move-result-object v6
|
|
|
|
if-eqz v6, :cond_17
|
|
|
|
invoke-virtual {v6}, Lcom/discord/utilities/streams/StreamContext;->getPreview()Lcom/discord/stores/StoreApplicationStreamPreviews$StreamPreview;
|
|
|
|
move-result-object v6
|
|
|
|
goto :goto_10
|
|
|
|
:cond_17
|
|
move-object v6, v0
|
|
|
|
:goto_10
|
|
instance-of v9, v6, Lcom/discord/stores/StoreApplicationStreamPreviews$StreamPreview$Resolved;
|
|
|
|
if-eqz v9, :cond_18
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewImage()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v9
|
|
|
|
check-cast v6, Lcom/discord/stores/StoreApplicationStreamPreviews$StreamPreview$Resolved;
|
|
|
|
invoke-virtual {v6}, Lcom/discord/stores/StoreApplicationStreamPreviews$StreamPreview$Resolved;->getUrl()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v9, v6}, Lcom/facebook/drawee/view/SimpleDraweeView;->setImageURI(Ljava/lang/String;)V
|
|
|
|
goto/16 :goto_14
|
|
|
|
:cond_18
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewImage()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v0}, Lcom/facebook/drawee/view/SimpleDraweeView;->setImageURI(Ljava/lang/String;)V
|
|
|
|
goto/16 :goto_14
|
|
|
|
:cond_19
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewText()Landroid/widget/TextView;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPaused()Landroid/view/View;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLiveIndicator()Landroid/widget/TextView;
|
|
|
|
move-result-object v6
|
|
|
|
iget-boolean v9, p1, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->i:Z
|
|
|
|
xor-int/2addr v9, v5
|
|
|
|
if-eqz v9, :cond_1a
|
|
|
|
const/4 v9, 0x0
|
|
|
|
goto :goto_11
|
|
|
|
:cond_1a
|
|
const/16 v9, 0x8
|
|
|
|
:goto_11
|
|
invoke-virtual {v6, v9}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
goto :goto_14
|
|
|
|
:cond_1b
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLoadingIndicator()Landroid/view/View;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v4}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPaused()Landroid/view/View;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewImage()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v4}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewText()Landroid/widget/TextView;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLiveIndicator()Landroid/widget/TextView;
|
|
|
|
move-result-object v6
|
|
|
|
iget-boolean v9, p1, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->i:Z
|
|
|
|
xor-int/2addr v9, v5
|
|
|
|
if-eqz v9, :cond_1c
|
|
|
|
const/4 v9, 0x0
|
|
|
|
goto :goto_12
|
|
|
|
:cond_1c
|
|
const/16 v9, 0x8
|
|
|
|
:goto_12
|
|
invoke-virtual {v6, v9}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
goto :goto_14
|
|
|
|
:cond_1d
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewImage()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewText()Landroid/widget/TextView;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPaused()Landroid/view/View;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
if-eqz v8, :cond_1e
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getBackgroundAvatar()Landroid/view/View;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVoiceUserView()Lcom/discord/views/VoiceUserView;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
goto :goto_13
|
|
|
|
:cond_1e
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getBackgroundAvatar()Landroid/view/View;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v4}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVoiceUserView()Lcom/discord/views/VoiceUserView;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v4}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:goto_13
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLiveIndicator()Landroid/widget/TextView;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:goto_14
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
move-result-object v6
|
|
|
|
if-eqz p1, :cond_1f
|
|
|
|
iget-object v9, p1, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->d:Lorg/webrtc/RendererCommon$ScalingType;
|
|
|
|
goto :goto_15
|
|
|
|
:cond_1f
|
|
move-object v9, v0
|
|
|
|
:goto_15
|
|
if-eqz p1, :cond_20
|
|
|
|
iget-object v10, p1, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->e:Lorg/webrtc/RendererCommon$ScalingType;
|
|
|
|
goto :goto_16
|
|
|
|
:cond_20
|
|
move-object v10, v0
|
|
|
|
:goto_16
|
|
if-eqz p1, :cond_21
|
|
|
|
iget-boolean v11, p1, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->c:Z
|
|
|
|
goto :goto_17
|
|
|
|
:cond_21
|
|
const/4 v11, 0x0
|
|
|
|
:goto_17
|
|
invoke-virtual {v6, v8, v9, v10, v11}, Lcom/discord/views/video/AppVideoStreamRenderer;->c(Ljava/lang/Integer;Lorg/webrtc/RendererCommon$ScalingType;Lorg/webrtc/RendererCommon$ScalingType;Z)V
|
|
|
|
iget-object v6, p0, Lcom/discord/views/video/VideoCallParticipantView;->v:Lrx/Subscription;
|
|
|
|
if-eqz v6, :cond_22
|
|
|
|
invoke-interface {v6}, Lrx/Subscription;->unsubscribe()V
|
|
|
|
:cond_22
|
|
if-eqz v8, :cond_23
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
move-result-object v6
|
|
|
|
iget-object v6, v6, Lcom/discord/views/video/AppVideoStreamRenderer;->h:Lrx/subjects/BehaviorSubject;
|
|
|
|
const-string v8, "currentFrameResolutionSubject"
|
|
|
|
invoke-static {v6, v8}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sget-object v8, Lcom/discord/utilities/rx/ObservableExtensionsKt$filterNull$1;->INSTANCE:Lcom/discord/utilities/rx/ObservableExtensionsKt$filterNull$1;
|
|
|
|
invoke-virtual {v6, v8}, Lrx/Observable;->v(Lr0/k/b;)Lrx/Observable;
|
|
|
|
move-result-object v6
|
|
|
|
sget-object v8, Lcom/discord/utilities/rx/ObservableExtensionsKt$filterNull$2;->INSTANCE:Lcom/discord/utilities/rx/ObservableExtensionsKt$filterNull$2;
|
|
|
|
invoke-virtual {v6, v8}, Lrx/Observable;->D(Lr0/k/b;)Lrx/Observable;
|
|
|
|
move-result-object v6
|
|
|
|
const-string v8, "filter { it != null }.map { it!! }"
|
|
|
|
invoke-static {v6, v8}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v8, Lf/a/n/n0/l;
|
|
|
|
invoke-direct {v8, p0}, Lf/a/n/n0/l;-><init>(Lcom/discord/views/video/VideoCallParticipantView;)V
|
|
|
|
invoke-virtual {v6, v8}, Lrx/Observable;->Q(Lrx/functions/Action1;)Lrx/Subscription;
|
|
|
|
move-result-object v6
|
|
|
|
iput-object v6, p0, Lcom/discord/views/video/VideoCallParticipantView;->v:Lrx/Subscription;
|
|
|
|
:cond_23
|
|
iget-object v6, p0, Lcom/discord/views/video/VideoCallParticipantView;->q:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;
|
|
|
|
if-eqz v6, :cond_24
|
|
|
|
iget-object v0, v6, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->g:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData$Type;
|
|
|
|
:cond_24
|
|
if-eqz p1, :cond_25
|
|
|
|
iget-boolean v6, p1, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->i:Z
|
|
|
|
if-ne v6, v5, :cond_25
|
|
|
|
const/4 v6, 0x1
|
|
|
|
goto :goto_18
|
|
|
|
:cond_25
|
|
const/4 v6, 0x0
|
|
|
|
:goto_18
|
|
if-eqz v0, :cond_28
|
|
|
|
if-ne v0, v2, :cond_26
|
|
|
|
if-eq v6, v3, :cond_28
|
|
|
|
:cond_26
|
|
sget-object v2, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData$Type;->DEFAULT:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData$Type;
|
|
|
|
if-ne v0, v2, :cond_27
|
|
|
|
if-nez v6, :cond_27
|
|
|
|
new-instance v0, Landroidx/constraintlayout/widget/ConstraintSet;
|
|
|
|
invoke-direct {v0}, Landroidx/constraintlayout/widget/ConstraintSet;-><init>()V
|
|
|
|
invoke-virtual {v0, p0}, Landroidx/constraintlayout/widget/ConstraintSet;->clone(Landroidx/constraintlayout/widget/ConstraintLayout;)V
|
|
|
|
new-instance v2, Landroidx/constraintlayout/widget/ConstraintLayout$LayoutParams;
|
|
|
|
invoke-direct {v2, v4, v4}, Landroidx/constraintlayout/widget/ConstraintLayout$LayoutParams;-><init>(II)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3, v2}, Landroid/view/SurfaceView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Landroid/view/SurfaceView;->getId()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v0, v2, v4}, Landroidx/constraintlayout/widget/ConstraintSet;->constrainHeight(II)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Landroid/view/SurfaceView;->getId()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v0, v2, v4}, Landroidx/constraintlayout/widget/ConstraintSet;->constrainWidth(II)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Landroid/view/SurfaceView;->getId()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v0, v2, v4}, Landroidx/constraintlayout/widget/ConstraintSet;->constrainDefaultHeight(II)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Landroid/view/SurfaceView;->getId()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v0, v2, v4}, Landroidx/constraintlayout/widget/ConstraintSet;->constrainDefaultWidth(II)V
|
|
|
|
invoke-virtual {v0, p0}, Landroidx/constraintlayout/widget/ConstraintSet;->applyTo(Landroidx/constraintlayout/widget/ConstraintLayout;)V
|
|
|
|
goto :goto_19
|
|
|
|
:cond_27
|
|
new-instance v0, Landroidx/constraintlayout/widget/ConstraintSet;
|
|
|
|
invoke-direct {v0}, Landroidx/constraintlayout/widget/ConstraintSet;-><init>()V
|
|
|
|
invoke-virtual {v0, p0}, Landroidx/constraintlayout/widget/ConstraintSet;->clone(Landroidx/constraintlayout/widget/ConstraintLayout;)V
|
|
|
|
new-instance v2, Landroidx/constraintlayout/widget/ConstraintLayout$LayoutParams;
|
|
|
|
const/4 v3, -0x2
|
|
|
|
invoke-direct {v2, v3, v3}, Landroidx/constraintlayout/widget/ConstraintLayout$LayoutParams;-><init>(II)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3, v2}, Landroid/view/SurfaceView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Landroid/view/SurfaceView;->getId()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v0, v2, v5}, Landroidx/constraintlayout/widget/ConstraintSet;->constrainDefaultHeight(II)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Landroid/view/SurfaceView;->getId()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v0, v2, v5}, Landroidx/constraintlayout/widget/ConstraintSet;->constrainDefaultWidth(II)V
|
|
|
|
invoke-virtual {v0, p0}, Landroidx/constraintlayout/widget/ConstraintSet;->applyTo(Landroidx/constraintlayout/widget/ConstraintLayout;)V
|
|
|
|
:cond_28
|
|
:goto_19
|
|
if-eqz v1, :cond_2c
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoLabel()Landroid/widget/TextView;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getDisplayName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
iget-object v0, p1, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->g:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData$Type;
|
|
|
|
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData$Type;->APPLICATION_STREAMING:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData$Type;
|
|
|
|
if-ne v0, v1, :cond_29
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoLabel()Landroid/widget/TextView;
|
|
|
|
move-result-object v0
|
|
|
|
const v1, 0x7f0803de
|
|
|
|
invoke-virtual {v0, v1, v4, v4, v4}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(IIII)V
|
|
|
|
goto :goto_1a
|
|
|
|
:cond_29
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoLabel()Landroid/widget/TextView;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, v4, v4, v4, v4}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(IIII)V
|
|
|
|
:goto_1a
|
|
iget-boolean v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->u:Z
|
|
|
|
if-eqz v0, :cond_2a
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoLabel()Landroid/widget/TextView;
|
|
|
|
move-result-object v0
|
|
|
|
iget-boolean p1, p1, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->h:Z
|
|
|
|
const-wide/16 v1, 0xc8
|
|
|
|
invoke-static {v0, p1, v1, v2}, Lcom/discord/utilities/view/extensions/ViewExtensions;->fadeBy(Landroid/view/View;ZJ)V
|
|
|
|
goto :goto_1c
|
|
|
|
:cond_2a
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoLabel()Landroid/widget/TextView;
|
|
|
|
move-result-object v0
|
|
|
|
iget-boolean p1, p1, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->h:Z
|
|
|
|
if-eqz p1, :cond_2b
|
|
|
|
goto :goto_1b
|
|
|
|
:cond_2b
|
|
const/16 v4, 0x8
|
|
|
|
:goto_1b
|
|
invoke-virtual {v0, v4}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
iput-boolean v5, p0, Lcom/discord/views/video/VideoCallParticipantView;->u:Z
|
|
|
|
:cond_2c
|
|
:goto_1c
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setData(Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/views/video/VideoCallParticipantView;->q:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setOnWatchStreamClicked(Lkotlin/jvm/functions/Function1;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-",
|
|
"Ljava/lang/String;",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iput-object p1, p0, Lcom/discord/views/video/VideoCallParticipantView;->s:Lkotlin/jvm/functions/Function1;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "onWatchStreamClicked"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|