1504 lines
42 KiB
Smali
1504 lines
42 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 r:[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:I
|
|
|
|
.field public final n:I
|
|
|
|
.field public final o:Z
|
|
|
|
.field public p:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;
|
|
|
|
.field public q:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 6
|
|
|
|
const/16 v0, 0x9
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v1, Ly/u/b/u;
|
|
|
|
const-class v2, Lcom/discord/views/video/VideoCallParticipantView;
|
|
|
|
invoke-static {v2}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "voiceUserView"
|
|
|
|
const-string v4, "getVoiceUserView()Lcom/discord/views/VoiceUserView;"
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v2, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
invoke-virtual {v2, v1}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
const/4 v1, 0x1
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/views/video/VideoCallParticipantView;
|
|
|
|
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "backgroundAvatar"
|
|
|
|
const-string v5, "getBackgroundAvatar()Landroid/widget/ImageView;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x2
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/views/video/VideoCallParticipantView;
|
|
|
|
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "voiceStatusIndicator"
|
|
|
|
const-string v5, "getVoiceStatusIndicator()Landroid/widget/ImageView;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x3
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/views/video/VideoCallParticipantView;
|
|
|
|
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "loadingIndicator"
|
|
|
|
const-string v5, "getLoadingIndicator()Landroid/view/View;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x4
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/views/video/VideoCallParticipantView;
|
|
|
|
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "letterbox"
|
|
|
|
const-string v5, "getLetterbox()Landroid/view/View;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x5
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/views/video/VideoCallParticipantView;
|
|
|
|
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "videoStreamRenderer"
|
|
|
|
const-string v5, "getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x6
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/views/video/VideoCallParticipantView;
|
|
|
|
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "applicationStreamPreviewImage"
|
|
|
|
const-string v5, "getApplicationStreamPreviewImage()Lcom/facebook/drawee/view/SimpleDraweeView;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x7
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/views/video/VideoCallParticipantView;
|
|
|
|
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "applicationStreamPreviewText"
|
|
|
|
const-string v5, "getApplicationStreamPreviewText()Landroid/widget/TextView;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/16 v1, 0x8
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/views/video/VideoCallParticipantView;
|
|
|
|
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "applicationStreamPaused"
|
|
|
|
const-string v5, "getApplicationStreamPaused()Landroid/view/View;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
sput-object v0, Lcom/discord/views/video/VideoCallParticipantView;->r:[Lkotlin/reflect/KProperty;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 6
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x6
|
|
|
|
const/4 v5, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
invoke-direct/range {v0 .. v5}, Lcom/discord/views/video/VideoCallParticipantView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 6
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x4
|
|
|
|
const/4 v5, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-object v2, p2
|
|
|
|
invoke-direct/range {v0 .. v5}, Lcom/discord/views/video/VideoCallParticipantView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Landroidx/constraintlayout/widget/ConstraintLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
const p3, 0x7f0a05d2
|
|
|
|
invoke-static {p0, p3}, Ly/z/l;->a(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, 0x7f0a05ca
|
|
|
|
invoke-static {p0, p3}, Ly/z/l;->a(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, 0x7f0a05d1
|
|
|
|
invoke-static {p0, p3}, Ly/z/l;->a(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, 0x7f0a05cf
|
|
|
|
invoke-static {p0, p3}, Ly/z/l;->a(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, 0x7f0a05cb
|
|
|
|
invoke-static {p0, p3}, Ly/z/l;->a(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, 0x7f0a05d0
|
|
|
|
invoke-static {p0, p3}, Ly/z/l;->a(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, 0x7f0a05cd
|
|
|
|
invoke-static {p0, p3}, Ly/z/l;->a(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, 0x7f0a05ce
|
|
|
|
invoke-static {p0, p3}, Ly/z/l;->a(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, 0x7f0a05cc
|
|
|
|
invoke-static {p0, p3}, Ly/z/l;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object p3
|
|
|
|
iput-object p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->l:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object p3
|
|
|
|
const v0, 0x7f070057
|
|
|
|
invoke-virtual {p3, v0}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result p3
|
|
|
|
iput p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->m:I
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object p3
|
|
|
|
const v0, 0x7f070062
|
|
|
|
invoke-virtual {p3, v0}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result p3
|
|
|
|
iput p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->n:I
|
|
|
|
const p3, 0x7f0d011b
|
|
|
|
invoke-static {p1, p3, p0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
const/4 p3, 0x0
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
sget-object v0, Lcom/discord/R$a;->VideoCallParticipantView:[I
|
|
|
|
invoke-virtual {p1, p2, v0, p3, p3}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, p3, p3}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result p2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
invoke-virtual {p1, v0, p3}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result p3
|
|
|
|
iput-boolean p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->o:Z
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iput-boolean p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->o:Z
|
|
|
|
const/4 p2, 0x0
|
|
|
|
:goto_0
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, p2}, 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;->o:Z
|
|
|
|
invoke-virtual {p1, p2}, Lcom/discord/views/video/AppVideoStreamRenderer;->setMatchVideoOrientation(Z)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance p2, Lcom/discord/views/video/VideoCallParticipantView$a;
|
|
|
|
invoke-direct {p2, p0}, Lcom/discord/views/video/VideoCallParticipantView$a;-><init>(Lcom/discord/views/video/VideoCallParticipantView;)V
|
|
|
|
invoke-virtual {p1, p2}, Lcom/discord/views/video/AppVideoStreamRenderer;->setOnFrameRenderedListener(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 0
|
|
|
|
and-int/lit8 p5, p4, 0x2
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
:cond_0
|
|
and-int/lit8 p4, p4, 0x4
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
const/4 p3, 0x0
|
|
|
|
:cond_1
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/discord/views/video/VideoCallParticipantView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic a(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;->o: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;->l:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->r:[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/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;->j:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->r:[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, 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;->k:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->r:[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/TextView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getBackgroundAvatar()Landroid/widget/ImageView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->e:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->r:[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/ImageView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getLetterbox()Landroid/view/View;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->h:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->r:[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 getLoadingIndicator()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;->r:[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 getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->i:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->r:[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/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getVoiceStatusIndicator()Landroid/widget/ImageView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->f:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->r:[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/widget/ImageView;
|
|
|
|
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;->r:[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;->p: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;->p:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->getId()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
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
|
|
|
|
if-eqz p1, :cond_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
|
|
|
|
:cond_0
|
|
const-string p1, "data"
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public onLayout(ZIIII)V
|
|
.locals 0
|
|
|
|
invoke-super/range {p0 .. p5}, Landroidx/constraintlayout/widget/ConstraintLayout;->onLayout(ZIIII)V
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getHeight()I
|
|
|
|
move-result p2
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p1
|
|
|
|
iget p2, p0, Lcom/discord/views/video/VideoCallParticipantView;->n:I
|
|
|
|
sub-int/2addr p1, p2
|
|
|
|
iget p2, p0, Lcom/discord/views/video/VideoCallParticipantView;->m:I
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p1
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVoiceUserView()Lcom/discord/views/VoiceUserView;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2, p1}, Lcom/discord/views/VoiceUserView;->setAvatarSize(I)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 14
|
|
.annotation build Landroidx/annotation/UiThread;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->c()Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v1, v0
|
|
|
|
:goto_0
|
|
const/4 v2, 0x2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVoiceUserView()Lcom/discord/views/VoiceUserView;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v4, v1, v3, v2}, Lcom/discord/views/VoiceUserView;->a(Lcom/discord/views/VoiceUserView;Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;II)V
|
|
|
|
:cond_1
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
move-result-object v4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
move-object v4, v0
|
|
|
|
:goto_1
|
|
invoke-static {v4, v3, v2, v0}, Lcom/discord/utilities/icon/IconUtils;->getForUser$default(Lcom/discord/models/domain/ModelUser;ZILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
iget-object v5, p0, Lcom/discord/views/video/VideoCallParticipantView;->q:Ljava/lang/String;
|
|
|
|
invoke-static {v4, v5}, Ly/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v5
|
|
|
|
const/4 v6, 0x1
|
|
|
|
xor-int/2addr v5, v6
|
|
|
|
if-eqz v5, :cond_4
|
|
|
|
iput-object v4, p0, Lcom/discord/views/video/VideoCallParticipantView;->q:Ljava/lang/String;
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getBackgroundAvatar()Landroid/widget/ImageView;
|
|
|
|
move-result-object v7
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
move-result-object v4
|
|
|
|
move-object v8, v4
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
move-object v8, v0
|
|
|
|
:goto_2
|
|
const/4 v9, 0x0
|
|
|
|
new-instance v10, Le/a/j/j0/i;
|
|
|
|
invoke-direct {v10, p0}, Le/a/j/j0/i;-><init>(Lcom/discord/views/video/VideoCallParticipantView;)V
|
|
|
|
const/4 v11, 0x0
|
|
|
|
const/16 v12, 0x14
|
|
|
|
const/4 v13, 0x0
|
|
|
|
invoke-static/range {v7 .. v13}, 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
|
|
|
|
:cond_4
|
|
if-eqz v1, :cond_5
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getVoiceState()Lcom/discord/models/domain/ModelVoice$State;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_5
|
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelVoice$State;->isSelfMute()Z
|
|
|
|
move-result v4
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
const/4 v4, 0x0
|
|
|
|
:goto_3
|
|
if-eqz v1, :cond_6
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getVoiceState()Lcom/discord/models/domain/ModelVoice$State;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelVoice$State;->isSelfDeaf()Z
|
|
|
|
move-result v1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_6
|
|
const/4 v1, 0x0
|
|
|
|
:goto_4
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVoiceStatusIndicator()Landroid/widget/ImageView;
|
|
|
|
move-result-object v5
|
|
|
|
if-nez v4, :cond_8
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
goto :goto_5
|
|
|
|
:cond_7
|
|
const/4 v7, 0x0
|
|
|
|
goto :goto_6
|
|
|
|
:cond_8
|
|
:goto_5
|
|
const/4 v7, 0x1
|
|
|
|
:goto_6
|
|
const/16 v8, 0x8
|
|
|
|
if-eqz v7, :cond_9
|
|
|
|
const/4 v7, 0x0
|
|
|
|
goto :goto_7
|
|
|
|
:cond_9
|
|
const/16 v7, 0x8
|
|
|
|
:goto_7
|
|
invoke-virtual {v5, v7}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
if-eqz v1, :cond_a
|
|
|
|
const v1, 0x7f0802fd
|
|
|
|
goto :goto_8
|
|
|
|
:cond_a
|
|
if-eqz v4, :cond_b
|
|
|
|
const v1, 0x7f080346
|
|
|
|
goto :goto_8
|
|
|
|
:cond_b
|
|
const/4 v1, 0x0
|
|
|
|
:goto_8
|
|
invoke-virtual {v5, v1}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
iget-object v1, p0, Lcom/discord/views/video/VideoCallParticipantView;->p:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;
|
|
|
|
if-eqz v1, :cond_c
|
|
|
|
invoke-virtual {v1}, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->d()Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_9
|
|
|
|
:cond_c
|
|
move-object v1, v0
|
|
|
|
:goto_9
|
|
iput-object p1, p0, Lcom/discord/views/video/VideoCallParticipantView;->p:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;
|
|
|
|
if-eqz p1, :cond_d
|
|
|
|
invoke-virtual {p1}, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->d()Ljava/lang/Integer;
|
|
|
|
move-result-object v4
|
|
|
|
goto :goto_a
|
|
|
|
:cond_d
|
|
move-object v4, v0
|
|
|
|
:goto_a
|
|
if-eqz p1, :cond_e
|
|
|
|
invoke-virtual {p1}, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->d()Ljava/lang/Integer;
|
|
|
|
move-result-object v5
|
|
|
|
goto :goto_b
|
|
|
|
:cond_e
|
|
move-object v5, v0
|
|
|
|
:goto_b
|
|
invoke-static {v5, v1}, Ly/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
xor-int/2addr v1, v6
|
|
|
|
if-eqz v1, :cond_12
|
|
|
|
if-eqz v5, :cond_11
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v8}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLetterbox()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewImage()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v5}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_f
|
|
|
|
const/4 v5, 0x1
|
|
|
|
goto :goto_c
|
|
|
|
:cond_f
|
|
const/4 v5, 0x0
|
|
|
|
:goto_c
|
|
xor-int/2addr v5, v6
|
|
|
|
if-eqz v5, :cond_10
|
|
|
|
const/4 v5, 0x0
|
|
|
|
goto :goto_d
|
|
|
|
:cond_10
|
|
const/16 v5, 0x8
|
|
|
|
:goto_d
|
|
invoke-virtual {v1, v5}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLoadingIndicator()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
goto :goto_e
|
|
|
|
:cond_11
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v8}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLetterbox()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v8}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLoadingIndicator()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v8}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:cond_12
|
|
:goto_e
|
|
if-eqz p1, :cond_13
|
|
|
|
invoke-virtual {p1}, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->g()Lcom/discord/views/video/VideoCallParticipantView$ParticipantData$Type;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_f
|
|
|
|
:cond_13
|
|
move-object v1, v0
|
|
|
|
:goto_f
|
|
sget-object v5, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData$Type;->APPLICATION_STREAMING:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData$Type;
|
|
|
|
if-ne v1, v5, :cond_1b
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getBackgroundAvatar()Landroid/widget/ImageView;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v8}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVoiceUserView()Lcom/discord/views/VoiceUserView;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v8}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-virtual {p1}, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->a()Lcom/discord/views/video/VideoCallParticipantView$ParticipantData$ApplicationStreamState;
|
|
|
|
move-result-object v1
|
|
|
|
if-nez v1, :cond_14
|
|
|
|
goto/16 :goto_11
|
|
|
|
:cond_14
|
|
sget-object v5, Le/a/j/j0/h;->a:[I
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v1
|
|
|
|
aget v1, v5, v1
|
|
|
|
if-eq v1, v6, :cond_1a
|
|
|
|
if-eq v1, v2, :cond_19
|
|
|
|
const/4 v2, 0x3
|
|
|
|
if-eq v1, v2, :cond_16
|
|
|
|
const/4 v2, 0x4
|
|
|
|
if-eq v1, v2, :cond_15
|
|
|
|
goto/16 :goto_11
|
|
|
|
:cond_15
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewText()Landroid/widget/TextView;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v8}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPaused()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v8}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
goto/16 :goto_11
|
|
|
|
:cond_16
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLoadingIndicator()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v8}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewImage()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewText()Landroid/widget/TextView;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPaused()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v8}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewText()Landroid/widget/TextView;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {p1}, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->c()Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v5}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getDisplayName()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v5, "\'s Screen"
|
|
|
|
invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
invoke-virtual {p1}, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->c()Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getStreamContext()Lcom/discord/utilities/streams/StreamContext;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_17
|
|
|
|
invoke-virtual {v1}, Lcom/discord/utilities/streams/StreamContext;->getPreview()Lcom/discord/stores/StoreApplicationStreamPreviews$StreamPreview;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_10
|
|
|
|
:cond_17
|
|
move-object v1, v0
|
|
|
|
:goto_10
|
|
instance-of v2, v1, Lcom/discord/stores/StoreApplicationStreamPreviews$StreamPreview$Resolved;
|
|
|
|
if-eqz v2, :cond_18
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewImage()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v1, Lcom/discord/stores/StoreApplicationStreamPreviews$StreamPreview$Resolved;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreApplicationStreamPreviews$StreamPreview$Resolved;->getUrl()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v2, v1}, Lcom/facebook/drawee/view/SimpleDraweeView;->setImageURI(Ljava/lang/String;)V
|
|
|
|
goto/16 :goto_11
|
|
|
|
:cond_18
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewImage()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v0}, Lcom/facebook/drawee/view/SimpleDraweeView;->setImageURI(Ljava/lang/String;)V
|
|
|
|
goto :goto_11
|
|
|
|
:cond_19
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLoadingIndicator()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v8}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewImage()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewText()Landroid/widget/TextView;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v8}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPaused()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
goto :goto_11
|
|
|
|
:cond_1a
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLoadingIndicator()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPaused()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v8}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewImage()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewText()Landroid/widget/TextView;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v8}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
goto :goto_11
|
|
|
|
:cond_1b
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewImage()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v8}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPreviewText()Landroid/widget/TextView;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v8}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getApplicationStreamPaused()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v8}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
if-eqz v4, :cond_1c
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getBackgroundAvatar()Landroid/widget/ImageView;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v8}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVoiceUserView()Lcom/discord/views/VoiceUserView;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v8}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
goto :goto_11
|
|
|
|
:cond_1c
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getBackgroundAvatar()Landroid/widget/ImageView;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVoiceUserView()Lcom/discord/views/VoiceUserView;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:goto_11
|
|
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz p1, :cond_1d
|
|
|
|
invoke-virtual {p1}, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->e()Lorg/webrtc/RendererCommon$ScalingType;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_12
|
|
|
|
:cond_1d
|
|
move-object v2, v0
|
|
|
|
:goto_12
|
|
if-eqz p1, :cond_1e
|
|
|
|
invoke-virtual {p1}, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->f()Lorg/webrtc/RendererCommon$ScalingType;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_1e
|
|
if-eqz p1, :cond_1f
|
|
|
|
invoke-virtual {p1}, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->b()Z
|
|
|
|
move-result v3
|
|
|
|
:cond_1f
|
|
invoke-virtual {v1, v4, v2, v0, v3}, Lcom/discord/views/video/AppVideoStreamRenderer;->a(Ljava/lang/Integer;Lorg/webrtc/RendererCommon$ScalingType;Lorg/webrtc/RendererCommon$ScalingType;Z)V
|
|
|
|
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;->p:Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;
|
|
|
|
return-void
|
|
.end method
|