apkfuckery/com.discord/smali/com/discord/views/video/VideoCallParticipantView.smali

1052 lines
28 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lcom/discord/views/video/VideoCallParticipantView;
.super Landroid/widget/RelativeLayout;
.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
2019-12-21 01:41:59 +00:00
.field public static final synthetic o:[Lkotlin/reflect/KProperty;
2019-07-24 11:27:29 +00:00
# instance fields
2019-12-06 03:29:40 +00:00
.field public final d:Lkotlin/properties/ReadOnlyProperty;
2019-08-22 06:13:42 +00:00
2019-12-06 03:29:40 +00:00
.field public final e:Lkotlin/properties/ReadOnlyProperty;
2019-11-13 02:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final f:Lkotlin/properties/ReadOnlyProperty;
2019-11-13 02:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final g:Lkotlin/properties/ReadOnlyProperty;
2019-11-13 02:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final h:Lkotlin/properties/ReadOnlyProperty;
2019-11-13 02:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final i:Lkotlin/properties/ReadOnlyProperty;
2019-11-13 02:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final j:I
2019-11-13 02:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final k:I
2019-12-03 21:42:56 +00:00
2019-12-21 01:41:59 +00:00
.field public final l:Z
2019-11-15 02:21:15 +00:00
2019-12-21 01:41:59 +00:00
.field public m:Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
2019-11-15 02:21:15 +00:00
2019-12-21 01:41:59 +00:00
.field public n:Ljava/lang/String;
2019-10-23 04:50:18 +00:00
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public static constructor <clinit>()V
2019-08-30 20:04:20 +00:00
.locals 6
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v0, 0x6
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-array v0, v0, [Lkotlin/reflect/KProperty;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
new-instance v1, Lt/u/b/u;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-class v2, Lcom/discord/views/video/VideoCallParticipantView;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-static {v2}, Lt/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lt/y/b;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v2
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const-string v3, "voiceUserView"
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const-string v4, "getVoiceUserView()Lcom/discord/views/VoiceUserView;"
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-direct {v1, v2, v3, v4}, Lt/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
sget-object v2, Lt/u/b/w;->a:Lt/u/b/x;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v2, v1}, Lt/u/b/x;->property1(Lt/u/b/t;)Lt/y/d;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v2, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v1, v0, v2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x1
2019-12-21 01:41:59 +00:00
new-instance v2, Lt/u/b/u;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-class v3, Lcom/discord/views/video/VideoCallParticipantView;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-static {v3}, Lt/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lt/y/b;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const-string v4, "backgroundAvatar"
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const-string v5, "getBackgroundAvatar()Landroid/widget/ImageView;"
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-direct {v2, v3, v4, v5}, Lt/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
sget-object v3, Lt/u/b/w;->a:Lt/u/b/x;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v3, v2}, Lt/u/b/x;->property1(Lt/u/b/t;)Lt/y/d;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v2, v0, v1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x2
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
new-instance v2, Lt/u/b/u;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-class v3, Lcom/discord/views/video/VideoCallParticipantView;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-static {v3}, Lt/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lt/y/b;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const-string v4, "voiceStatusIndicator"
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const-string v5, "getVoiceStatusIndicator()Landroid/widget/ImageView;"
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-direct {v2, v3, v4, v5}, Lt/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
sget-object v3, Lt/u/b/w;->a:Lt/u/b/x;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v3, v2}, Lt/u/b/x;->property1(Lt/u/b/t;)Lt/y/d;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v2, v0, v1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x3
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
new-instance v2, Lt/u/b/u;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-class v3, Lcom/discord/views/video/VideoCallParticipantView;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-static {v3}, Lt/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lt/y/b;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const-string v4, "loadingIndicator"
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const-string v5, "getLoadingIndicator()Landroid/view/View;"
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-direct {v2, v3, v4, v5}, Lt/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
sget-object v3, Lt/u/b/w;->a:Lt/u/b/x;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v3, v2}, Lt/u/b/x;->property1(Lt/u/b/t;)Lt/y/d;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v2, v0, v1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x4
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
new-instance v2, Lt/u/b/u;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-class v3, Lcom/discord/views/video/VideoCallParticipantView;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-static {v3}, Lt/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lt/y/b;
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const-string v4, "letterbox"
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const-string v5, "getLetterbox()Landroid/view/View;"
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-direct {v2, v3, v4, v5}, Lt/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
sget-object v3, Lt/u/b/w;->a:Lt/u/b/x;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v3, v2}, Lt/u/b/x;->property1(Lt/u/b/t;)Lt/y/d;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v2, v0, v1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x5
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
new-instance v2, Lt/u/b/u;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-class v3, Lcom/discord/views/video/VideoCallParticipantView;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-static {v3}, Lt/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lt/y/b;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const-string v4, "videoStreamRenderer"
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const-string v5, "getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;"
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-direct {v2, v3, v4, v5}, Lt/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
sget-object v3, Lt/u/b/w;->a:Lt/u/b/x;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v3, v2}, Lt/u/b/x;->property1(Lt/u/b/t;)Lt/y/d;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v2, v0, v1
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
sput-object v0, Lcom/discord/views/video/VideoCallParticipantView;->o:[Lkotlin/reflect/KProperty;
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_1
2019-07-24 11:27:29 +00:00
invoke-direct {p0, p1, p2, p3}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
2020-01-18 01:53:20 +00:00
const p3, 0x7f0a0541
2019-07-24 11:27:29 +00:00
2020-01-07 02:40:43 +00:00
invoke-static {p0, p3}, Lu/a/a2/w;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
move-result-object p3
2019-12-06 03:29:40 +00:00
iput-object p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->d:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
2020-01-18 01:53:20 +00:00
const p3, 0x7f0a053b
2019-07-24 11:27:29 +00:00
2020-01-07 02:40:43 +00:00
invoke-static {p0, p3}, Lu/a/a2/w;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
move-result-object p3
2019-12-06 03:29:40 +00:00
iput-object p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->e:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
2020-01-18 01:53:20 +00:00
const p3, 0x7f0a0540
2019-07-24 11:27:29 +00:00
2020-01-07 02:40:43 +00:00
invoke-static {p0, p3}, Lu/a/a2/w;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
move-result-object p3
2019-12-06 03:29:40 +00:00
iput-object p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->f:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
2020-01-18 01:53:20 +00:00
const p3, 0x7f0a053e
2019-07-24 11:27:29 +00:00
2020-01-07 02:40:43 +00:00
invoke-static {p0, p3}, Lu/a/a2/w;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
move-result-object p3
2019-12-06 03:29:40 +00:00
iput-object p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->g:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
2020-01-18 01:53:20 +00:00
const p3, 0x7f0a053c
2019-07-24 11:27:29 +00:00
2020-01-07 02:40:43 +00:00
invoke-static {p0, p3}, Lu/a/a2/w;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
move-result-object p3
2019-12-06 03:29:40 +00:00
iput-object p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->h:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
2020-01-18 01:53:20 +00:00
const p3, 0x7f0a053f
2019-07-24 11:27:29 +00:00
2020-01-07 02:40:43 +00:00
invoke-static {p0, p3}, Lu/a/a2/w;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
move-result-object p3
2019-12-06 03:29:40 +00:00
iput-object p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->i:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/RelativeLayout;->getResources()Landroid/content/res/Resources;
2019-07-24 11:27:29 +00:00
move-result-object p3
2020-01-07 02:40:43 +00:00
const v0, 0x7f07005a
2019-07-24 11:27:29 +00:00
invoke-virtual {p3, v0}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
move-result p3
2019-12-06 03:29:40 +00:00
iput p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->j:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/RelativeLayout;->getResources()Landroid/content/res/Resources;
2019-07-24 11:27:29 +00:00
move-result-object p3
2020-01-10 03:40:06 +00:00
const v0, 0x7f070065
2019-07-24 11:27:29 +00:00
invoke-virtual {p3, v0}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
move-result p3
2019-12-06 03:29:40 +00:00
iput p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->k:I
2019-10-23 04:50:18 +00:00
2020-01-16 02:27:13 +00:00
const p3, 0x7f0d0109
2019-10-23 04:50:18 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {p1, p3, p0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
2019-10-23 04:50:18 +00:00
2019-12-06 03:29:40 +00:00
const/4 p3, 0x0
2019-10-23 04:50:18 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p2, :cond_0
2019-10-23 04:50:18 +00:00
2019-12-06 03:29:40 +00:00
sget-object v0, Lcom/discord/R$a;->VideoCallParticipantView:[I
2019-10-23 04:50:18 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p1, p2, v0, p3, p3}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
2019-10-23 04:50:18 +00:00
2019-12-06 03:29:40 +00:00
move-result-object p1
2019-10-23 04:50:18 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p1, p3, p3}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result p2
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const/4 v0, 0x1
2019-12-18 07:41:41 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {p1, v0, p3}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
move-result p3
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
iput-boolean p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->l:Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_0
2019-12-21 01:41:59 +00:00
iput-boolean p3, p0, Lcom/discord/views/video/VideoCallParticipantView;->l:Z
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
const/4 p2, 0x0
2019-12-06 03:29:40 +00:00
:goto_0
2019-12-21 01:41:59 +00:00
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;->l: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
2019-10-23 04:50:18 +00:00
return-void
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_1
const-string p1, "context"
2019-10-19 01:51:17 +00:00
2019-12-21 01:41:59 +00:00
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
2019-08-30 20:04:20 +00:00
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
2019-07-24 11:27:29 +00:00
.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
2019-12-21 01:41:59 +00:00
.method public static final synthetic a(Lcom/discord/views/video/VideoCallParticipantView;Landroid/graphics/Point;)V
.locals 4
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const/4 v1, 0x0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setVisibility(I)V
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLetterbox()Landroid/view/View;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLoadingIndicator()Landroid/view/View;
2019-07-24 11:27:29 +00:00
2019-12-20 07:00:35 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const/16 v2, 0x8
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
iget v0, p1, Landroid/graphics/Point;->x:I
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
iget p1, p1, Landroid/graphics/Point;->y:I
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const/4 v2, 0x1
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
if-le v0, p1, :cond_0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const/4 p1, 0x1
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
:cond_0
const/4 p1, 0x0
2019-12-12 08:58:10 +00:00
2019-12-21 01:41:59 +00:00
:goto_0
invoke-virtual {p0}, Landroid/widget/RelativeLayout;->getWidth()I
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
move-result v0
2019-12-12 08:58:10 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {p0}, Landroid/widget/RelativeLayout;->getHeight()I
2019-12-12 08:58:10 +00:00
2019-12-21 01:41:59 +00:00
move-result v3
2019-12-12 08:58:10 +00:00
2019-12-21 01:41:59 +00:00
if-le v0, v3, :cond_1
2019-12-12 08:58:10 +00:00
2019-12-21 01:41:59 +00:00
const/4 v0, 0x1
2019-12-12 08:58:10 +00:00
2019-12-21 01:41:59 +00:00
goto :goto_1
2019-12-12 08:58:10 +00:00
2019-12-21 01:41:59 +00:00
:cond_1
const/4 v0, 0x0
2019-12-12 08:58:10 +00:00
2019-12-21 01:41:59 +00:00
:goto_1
if-eq p1, v0, :cond_2
2019-12-12 08:58:10 +00:00
2019-12-21 01:41:59 +00:00
const/4 v1, 0x1
2019-12-12 08:58:10 +00:00
2019-12-21 01:41:59 +00:00
:cond_2
iget-boolean p1, p0, Lcom/discord/views/video/VideoCallParticipantView;->l:Z
2019-12-12 08:58:10 +00:00
2019-12-21 01:41:59 +00:00
if-eqz p1, :cond_3
2019-12-12 08:58:10 +00:00
2019-12-21 01:41:59 +00:00
if-eqz v1, :cond_3
2019-12-12 08:58:10 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {p0}, Landroid/widget/RelativeLayout;->getHeight()I
2019-12-12 08:58:10 +00:00
2019-12-21 01:41:59 +00:00
move-result p1
2019-12-12 08:58:10 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {p0}, Landroid/widget/RelativeLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
2019-12-12 08:58:10 +00:00
2019-12-18 07:41:41 +00:00
move-result-object v0
2019-12-12 08:58:10 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {p0}, Landroid/widget/RelativeLayout;->getWidth()I
2019-12-18 07:41:41 +00:00
2019-12-21 01:41:59 +00:00
move-result v1
2019-12-18 07:41:41 +00:00
2019-12-21 01:41:59 +00:00
iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
2019-12-18 07:41:41 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {p0}, Landroid/widget/RelativeLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
2019-12-18 07:41:41 +00:00
2019-12-21 01:41:59 +00:00
move-result-object p0
2019-12-18 07:41:41 +00:00
2019-12-21 01:41:59 +00:00
iput p1, p0, Landroid/view/ViewGroup$LayoutParams;->width:I
2019-12-18 07:41:41 +00:00
2019-12-21 01:41:59 +00:00
:cond_3
return-void
2019-12-12 08:58:10 +00:00
.end method
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
.method private final getBackgroundAvatar()Landroid/widget/ImageView;
2019-12-18 09:41:56 +00:00
.locals 3
2019-12-18 07:41:41 +00:00
2019-12-20 07:00:35 +00:00
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->e:Lkotlin/properties/ReadOnlyProperty;
2019-12-18 07:41:41 +00:00
2019-12-21 01:41:59 +00:00
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->o:[Lkotlin/reflect/KProperty;
2019-12-18 07:41:41 +00:00
2019-12-20 07:00:35 +00:00
const/4 v2, 0x1
2019-12-18 07:41:41 +00:00
2019-12-18 09:41:56 +00:00
aget-object v1, v1, v2
2019-12-18 07:41:41 +00:00
2019-12-18 09:41:56 +00:00
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
2019-12-18 07:41:41 +00:00
2019-12-18 09:41:56 +00:00
move-result-object v0
2019-12-18 07:41:41 +00:00
2019-12-21 01:41:59 +00:00
check-cast v0, Landroid/widget/ImageView;
2019-12-18 07:41:41 +00:00
2019-12-18 09:41:56 +00:00
return-object v0
.end method
2019-12-18 07:41:41 +00:00
2019-12-21 01:41:59 +00:00
.method private final getLetterbox()Landroid/view/View;
.locals 3
2019-12-18 07:41:41 +00:00
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->h:Lkotlin/properties/ReadOnlyProperty;
2019-12-18 07:41:41 +00:00
2019-12-21 01:41:59 +00:00
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->o:[Lkotlin/reflect/KProperty;
2019-12-18 07:41:41 +00:00
2019-12-21 01:41:59 +00:00
const/4 v2, 0x4
2019-12-18 07:41:41 +00:00
2019-12-21 01:41:59 +00:00
aget-object v1, v1, v2
2019-12-18 07:41:41 +00:00
2019-12-21 01:41:59 +00:00
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
2019-12-18 07:41:41 +00:00
2019-12-20 07:00:35 +00:00
move-result-object v0
2019-12-18 07:41:41 +00:00
2019-12-21 01:41:59 +00:00
check-cast v0, Landroid/view/View;
2019-12-18 07:41:41 +00:00
2019-12-21 01:41:59 +00:00
return-object v0
.end method
2019-12-18 07:41:41 +00:00
2019-12-21 01:41:59 +00:00
.method private final getLoadingIndicator()Landroid/view/View;
.locals 3
2019-12-18 07:41:41 +00:00
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->g:Lkotlin/properties/ReadOnlyProperty;
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->o:[Lkotlin/reflect/KProperty;
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
const/4 v2, 0x3
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
aget-object v1, v1, v2
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
2019-12-20 07:00:35 +00:00
move-result-object v0
2019-12-21 01:41:59 +00:00
check-cast v0, Landroid/view/View;
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
return-object v0
2019-12-18 07:41:41 +00:00
.end method
2019-12-13 02:35:12 +00:00
2019-12-21 01:41:59 +00:00
.method private final getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
.locals 3
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->i:Lkotlin/properties/ReadOnlyProperty;
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->o:[Lkotlin/reflect/KProperty;
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
const/4 v2, 0x5
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
aget-object v1, v1, v2
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
move-result-object v0
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
check-cast v0, Lcom/discord/views/video/AppVideoStreamRenderer;
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
return-object v0
.end method
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
.method private final getVoiceStatusIndicator()Landroid/widget/ImageView;
.locals 3
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->f:Lkotlin/properties/ReadOnlyProperty;
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->o:[Lkotlin/reflect/KProperty;
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
const/4 v2, 0x2
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
aget-object v1, v1, v2
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
move-result-object v0
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
check-cast v0, Landroid/widget/ImageView;
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
return-object v0
.end method
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
.method private final getVoiceUserView()Lcom/discord/views/VoiceUserView;
.locals 3
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->d:Lkotlin/properties/ReadOnlyProperty;
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
sget-object v1, Lcom/discord/views/video/VideoCallParticipantView;->o:[Lkotlin/reflect/KProperty;
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
const/4 v2, 0x0
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
aget-object v1, v1, v2
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
move-result-object v0
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
check-cast v0, Lcom/discord/views/VoiceUserView;
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
return-object v0
2019-12-20 07:00:35 +00:00
.end method
2019-12-18 09:41:56 +00:00
2019-12-21 01:41:59 +00:00
# virtual methods
2019-12-06 03:29:40 +00:00
.method public getDataId()Ljava/lang/String;
2019-07-24 11:27:29 +00:00
.locals 2
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->m:Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
2019-12-21 01:41:59 +00:00
invoke-virtual {v0}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getUser()Lcom/discord/models/domain/ModelUser;
2019-07-24 11:27:29 +00:00
move-result-object v0
if-eqz v0, :cond_0
invoke-virtual {v0}, Lcom/discord/models/domain/ModelUser;->getId()J
move-result-wide v0
invoke-static {v0, v1}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object v0
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
const/4 v0, 0x0
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return-object v0
.end method
2019-12-21 01:41:59 +00:00
.method public final getParticipant()Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->m:Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
2019-07-24 11:27:29 +00:00
return-object v0
.end method
2019-12-06 03:29:40 +00:00
.method public onBind(Lcom/discord/utilities/view/grid/FrameGridLayout$Data;)V
.locals 0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_0
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
:cond_0
const-string p1, "data"
2019-10-23 04:50:18 +00:00
2019-12-21 01:41:59 +00:00
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
2019-10-23 04:50:18 +00:00
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
2019-10-23 04:50:18 +00:00
2019-12-06 03:29:40 +00:00
throw p1
2019-10-23 04:50:18 +00:00
.end method
2019-12-06 03:29:40 +00:00
.method public onLayout(ZIIII)V
2019-07-24 11:27:29 +00:00
.locals 0
invoke-super/range {p0 .. p5}, Landroid/widget/RelativeLayout;->onLayout(ZIIII)V
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/RelativeLayout;->getWidth()I
2019-07-24 11:27:29 +00:00
move-result p1
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/RelativeLayout;->getHeight()I
2019-07-24 11:27:29 +00:00
move-result p2
invoke-static {p1, p2}, Ljava/lang/Math;->min(II)I
move-result p1
2019-12-06 03:29:40 +00:00
iget p2, p0, Lcom/discord/views/video/VideoCallParticipantView;->k:I
2019-07-24 11:27:29 +00:00
sub-int/2addr p1, p2
2019-12-06 03:29:40 +00:00
iget p2, p0, Lcom/discord/views/video/VideoCallParticipantView;->j:I
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
.method public onRemove()V
2019-07-24 11:27:29 +00:00
.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
2019-10-23 04:50:18 +00:00
.method public final set(Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;)V
2019-12-21 01:41:59 +00:00
.locals 13
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/UiThread;
.end annotation
2019-10-23 04:50:18 +00:00
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->m:Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
const/4 v1, 0x0
2019-07-24 11:27:29 +00:00
if-eqz p1, :cond_0
2019-12-21 01:41:59 +00:00
invoke-virtual {p1}, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->b()Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
move-result-object v2
2019-07-24 11:27:29 +00:00
goto :goto_0
:cond_0
2019-12-21 01:41:59 +00:00
move-object v2, v1
2019-07-24 11:27:29 +00:00
:goto_0
2019-12-21 01:41:59 +00:00
iput-object v2, p0, Lcom/discord/views/video/VideoCallParticipantView;->m:Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
2019-10-19 01:51:17 +00:00
2019-12-21 01:41:59 +00:00
iget-object v2, p0, Lcom/discord/views/video/VideoCallParticipantView;->m:Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
2019-10-01 14:15:45 +00:00
2019-12-21 01:41:59 +00:00
if-eqz v2, :cond_1
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v2}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getCallStreamId()Ljava/lang/Integer;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
move-result-object v2
2019-07-24 11:27:29 +00:00
goto :goto_1
:cond_1
2019-12-21 01:41:59 +00:00
move-object v2, v1
2019-07-24 11:27:29 +00:00
:goto_1
2019-12-21 01:41:59 +00:00
if-eqz v0, :cond_2
2019-10-11 21:55:41 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v0}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getCallStreamId()Ljava/lang/Integer;
2019-10-23 04:50:18 +00:00
2019-12-21 01:41:59 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
goto :goto_2
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
:cond_2
move-object v0, v1
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
:goto_2
invoke-static {v2, v0}, Lt/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
move-result v0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const/4 v2, 0x1
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
xor-int/2addr v0, v2
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const/4 v3, 0x0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
if-eqz v0, :cond_5
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->m:Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
2019-12-13 02:35:12 +00:00
2019-12-21 01:41:59 +00:00
if-eqz v0, :cond_3
2019-12-18 09:41:56 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v0}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getCallStreamId()Ljava/lang/Integer;
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_3
2019-12-21 01:41:59 +00:00
move-object v0, v1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:goto_3
2019-12-21 01:41:59 +00:00
const/16 v4, 0x8
if-eqz v0, :cond_4
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
move-result-object v0
invoke-virtual {v0, v4}, Landroid/widget/RelativeLayout;->setVisibility(I)V
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLetterbox()Landroid/view/View;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLoadingIndicator()Landroid/view/View;
move-result-object v0
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
goto :goto_4
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_4
2019-12-21 01:41:59 +00:00
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
move-result-object v0
invoke-virtual {v0, v4}, Landroid/widget/RelativeLayout;->setVisibility(I)V
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLetterbox()Landroid/view/View;
move-result-object v0
invoke-virtual {v0, v4}, Landroid/view/View;->setVisibility(I)V
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getLoadingIndicator()Landroid/view/View;
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v0, v4}, Landroid/view/View;->setVisibility(I)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_5
2019-12-21 01:41:59 +00:00
:goto_4
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->m:Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const/4 v4, 0x2
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
if-eqz v0, :cond_6
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVoiceUserView()Lcom/discord/views/VoiceUserView;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
move-result-object v5
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-static {v5, v0, v3, v4}, Lcom/discord/views/VoiceUserView;->a(Lcom/discord/views/VoiceUserView;Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;II)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_6
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->m:Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
if-eqz v0, :cond_7
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v0}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getUser()Lcom/discord/models/domain/ModelUser;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
goto :goto_5
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_7
2019-12-21 01:41:59 +00:00
move-object v0, v1
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
:goto_5
invoke-static {v0, v3, v4, v1}, Lcom/discord/utilities/icon/IconUtils;->getForUser$default(Lcom/discord/models/domain/ModelUser;ZILjava/lang/Object;)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
iget-object v5, p0, Lcom/discord/views/video/VideoCallParticipantView;->n:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-static {v0, v5}, Lt/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
2019-12-12 08:58:10 +00:00
2019-12-21 01:41:59 +00:00
move-result v5
2019-12-18 07:41:41 +00:00
2019-12-21 01:41:59 +00:00
xor-int/2addr v5, v2
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
if-eqz v5, :cond_9
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
iput-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->n:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getBackgroundAvatar()Landroid/widget/ImageView;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
move-result-object v6
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->m:Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
if-eqz v0, :cond_8
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v0}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getUser()Lcom/discord/models/domain/ModelUser;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
move-object v7, v0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
goto :goto_6
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_8
2019-12-21 01:41:59 +00:00
move-object v7, v1
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
:goto_6
const/4 v8, 0x0
2019-07-24 11:27:29 +00:00
2020-01-10 03:40:06 +00:00
new-instance v9, Le/a/j/j0/g;
2019-07-24 11:27:29 +00:00
2020-01-10 03:40:06 +00:00
invoke-direct {v9, p0}, Le/a/j/j0/g;-><init>(Lcom/discord/views/video/VideoCallParticipantView;)V
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const/4 v10, 0x0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const/16 v11, 0x14
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
const/4 v12, 0x0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-static/range {v6 .. v12}, 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
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_9
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lcom/discord/views/video/VideoCallParticipantView;->m:Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
if-eqz v0, :cond_a
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v0}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getVoiceState()Lcom/discord/models/domain/ModelVoice$State;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
if-eqz v0, :cond_a
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v0}, Lcom/discord/models/domain/ModelVoice$State;->isSelfMute()Z
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
move-result v0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
goto :goto_7
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_a
2019-12-21 01:41:59 +00:00
const/4 v0, 0x0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
:goto_7
iget-object v5, p0, Lcom/discord/views/video/VideoCallParticipantView;->m:Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
if-eqz v5, :cond_b
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v5}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getVoiceState()Lcom/discord/models/domain/ModelVoice$State;
2019-10-10 02:17:24 +00:00
2019-12-21 01:41:59 +00:00
move-result-object v5
2019-10-19 01:51:17 +00:00
2019-12-21 01:41:59 +00:00
if-eqz v5, :cond_b
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v5}, Lcom/discord/models/domain/ModelVoice$State;->isSelfDeaf()Z
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
move-result v5
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
goto :goto_8
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_b
2019-12-21 01:41:59 +00:00
const/4 v5, 0x0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
:goto_8
2019-12-06 03:29:40 +00:00
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVoiceStatusIndicator()Landroid/widget/ImageView;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
move-result-object v6
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
if-nez v0, :cond_d
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
if-eqz v5, :cond_c
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
goto :goto_9
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_c
2019-12-21 01:41:59 +00:00
const/4 v2, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_d
2019-07-24 11:27:29 +00:00
:goto_9
2019-12-21 01:41:59 +00:00
invoke-static {v6, v2, v3, v4, v1}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy$default(Landroid/view/View;ZIILjava/lang/Object;)V
2019-10-23 04:50:18 +00:00
2019-12-21 01:41:59 +00:00
if-eqz v5, :cond_e
2019-10-23 04:50:18 +00:00
2020-01-10 03:40:06 +00:00
const v0, 0x7f0802d4
2019-10-23 04:50:18 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_a
2019-10-11 21:55:41 +00:00
2019-12-06 03:29:40 +00:00
:cond_e
2019-12-21 01:41:59 +00:00
if-eqz v0, :cond_f
2019-10-23 04:50:18 +00:00
2020-01-10 03:40:06 +00:00
const v0, 0x7f08031e
2019-07-24 11:27:29 +00:00
goto :goto_a
2019-12-06 03:29:40 +00:00
:cond_f
2019-12-21 01:41:59 +00:00
const/4 v0, 0x0
2019-07-24 11:27:29 +00:00
:goto_a
2019-12-21 01:41:59 +00:00
invoke-virtual {v6, v0}, Landroid/widget/ImageView;->setImageResource(I)V
2019-10-11 21:55:41 +00:00
2019-12-21 01:41:59 +00:00
invoke-direct {p0}, Lcom/discord/views/video/VideoCallParticipantView;->getVideoStreamRenderer()Lcom/discord/views/video/AppVideoStreamRenderer;
2019-10-11 21:55:41 +00:00
2019-12-21 01:41:59 +00:00
move-result-object v0
2019-10-23 04:50:18 +00:00
2019-12-21 01:41:59 +00:00
iget-object v2, p0, Lcom/discord/views/video/VideoCallParticipantView;->m:Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
2019-10-23 04:50:18 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v2, :cond_10
2019-10-23 04:50:18 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v2}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getCallStreamId()Ljava/lang/Integer;
2019-12-12 08:58:10 +00:00
2019-12-13 02:35:12 +00:00
move-result-object v2
2019-12-12 08:58:10 +00:00
2019-12-13 02:35:12 +00:00
goto :goto_b
2019-12-12 08:58:10 +00:00
2019-12-13 02:35:12 +00:00
:cond_10
2019-12-21 01:41:59 +00:00
move-object v2, v1
2019-12-12 08:58:10 +00:00
2019-12-13 02:35:12 +00:00
:goto_b
2019-12-21 01:41:59 +00:00
if-eqz p1, :cond_11
2019-12-12 08:58:10 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {p1}, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->c()Lorg/webrtc/RendererCommon$ScalingType;
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
move-result-object v4
2019-10-23 04:50:18 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_c
2019-10-23 04:50:18 +00:00
2019-12-06 03:29:40 +00:00
:cond_11
2019-12-21 01:41:59 +00:00
move-object v4, v1
2019-10-23 04:50:18 +00:00
2019-12-06 03:29:40 +00:00
:goto_c
2019-12-21 01:41:59 +00:00
if-eqz p1, :cond_12
2019-12-18 07:41:41 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {p1}, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->d()Lorg/webrtc/RendererCommon$ScalingType;
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
move-result-object v1
2019-12-20 07:00:35 +00:00
:cond_12
2019-12-21 01:41:59 +00:00
if-eqz p1, :cond_13
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {p1}, Lcom/discord/views/video/VideoCallParticipantView$ParticipantData;->a()Z
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
move-result v3
2019-12-20 07:00:35 +00:00
2019-12-21 01:41:59 +00:00
:cond_13
invoke-virtual {v0, v2, v4, v1, v3}, Lcom/discord/views/video/AppVideoStreamRenderer;->a(Ljava/lang/Integer;Lorg/webrtc/RendererCommon$ScalingType;Lorg/webrtc/RendererCommon$ScalingType;Z)V
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-12-21 01:41:59 +00:00
.method public final setParticipant(Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;)V
2019-07-24 11:27:29 +00:00
.locals 0
2019-12-21 01:41:59 +00:00
iput-object p1, p0, Lcom/discord/views/video/VideoCallParticipantView;->m:Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
2019-07-24 11:27:29 +00:00
return-void
.end method