apkfuckery/com.discord/smali_classes2/com/discord/widgets/voice/controls/FloatingVoiceControlsView2....

1819 lines
56 KiB
Smali

.class public final Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;
.super Landroid/widget/LinearLayout;
.source "FloatingVoiceControlsView2.kt"
# static fields
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
# instance fields
.field public final audioOutputContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
.field public final audioOutputSelector$delegate:Lkotlin/properties/ReadOnlyProperty;
.field public final audioOutputSelectorMore$delegate:Lkotlin/properties/ReadOnlyProperty;
.field public final audioOutputSheetButton$delegate:Lkotlin/properties/ReadOnlyProperty;
.field public final deafenSheetButton$delegate:Lkotlin/properties/ReadOnlyProperty;
.field public final disconnect$delegate:Lkotlin/properties/ReadOnlyProperty;
.field public final inviteSheetButton$delegate:Lkotlin/properties/ReadOnlyProperty;
.field public final mute$delegate:Lkotlin/properties/ReadOnlyProperty;
.field public final peekContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
.field public final pushToTalkButton$delegate:Lkotlin/properties/ReadOnlyProperty;
.field public final screenshare$delegate:Lkotlin/properties/ReadOnlyProperty;
.field public final screenshareSheetButton$delegate:Lkotlin/properties/ReadOnlyProperty;
.field public final stopWatching$delegate:Lkotlin/properties/ReadOnlyProperty;
.field public final streamVolumeLabel$delegate:Lkotlin/properties/ReadOnlyProperty;
.field public final streamVolumeSlider$delegate:Lkotlin/properties/ReadOnlyProperty;
.field public final video$delegate:Lkotlin/properties/ReadOnlyProperty;
# direct methods
.method public static constructor <clinit>()V
.locals 5
const/16 v0, 0x10
new-array v0, v0, [Lkotlin/reflect/KProperty;
const-class v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;
const-string v2, "peekContainer"
const-string v3, "getPeekContainer()Landroid/view/View;"
const/4 v4, 0x0
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lz/n/c/s;
move-result-object v1
aput-object v1, v0, v4
const-class v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;
const-string v2, "video"
const-string v3, "getVideo()Landroid/widget/ImageView;"
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lz/n/c/s;
move-result-object v1
const/4 v2, 0x1
aput-object v1, v0, v2
const-class v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;
const-string v2, "audioOutputContainer"
const-string v3, "getAudioOutputContainer()Landroid/view/View;"
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lz/n/c/s;
move-result-object v1
const/4 v2, 0x2
aput-object v1, v0, v2
const-class v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;
const-string v2, "audioOutputSelector"
const-string v3, "getAudioOutputSelector()Landroid/widget/ImageView;"
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lz/n/c/s;
move-result-object v1
const/4 v2, 0x3
aput-object v1, v0, v2
const-class v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;
const-string v2, "audioOutputSelectorMore"
const-string v3, "getAudioOutputSelectorMore()Landroid/widget/ImageView;"
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lz/n/c/s;
move-result-object v1
const/4 v2, 0x4
aput-object v1, v0, v2
const-class v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;
const-string v2, "screenshare"
const-string v3, "getScreenshare()Landroid/widget/ImageView;"
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lz/n/c/s;
move-result-object v1
const/4 v2, 0x5
aput-object v1, v0, v2
const-class v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;
const-string v2, "mute"
const-string v3, "getMute()Landroid/widget/ImageView;"
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lz/n/c/s;
move-result-object v1
const/4 v2, 0x6
aput-object v1, v0, v2
const-class v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;
const-string v2, "disconnect"
const-string v3, "getDisconnect()Landroid/view/View;"
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lz/n/c/s;
move-result-object v1
const/4 v2, 0x7
aput-object v1, v0, v2
const-class v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;
const-string v2, "stopWatching"
const-string v3, "getStopWatching()Landroid/view/View;"
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lz/n/c/s;
move-result-object v1
const/16 v2, 0x8
aput-object v1, v0, v2
const-class v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;
const-string v2, "pushToTalkButton"
const-string v3, "getPushToTalkButton()Landroid/view/View;"
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lz/n/c/s;
move-result-object v1
const/16 v2, 0x9
aput-object v1, v0, v2
const-class v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;
const-string v2, "streamVolumeLabel"
const-string v3, "getStreamVolumeLabel()Landroid/view/View;"
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lz/n/c/s;
move-result-object v1
const/16 v2, 0xa
aput-object v1, v0, v2
const-class v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;
const-string v2, "streamVolumeSlider"
const-string v3, "getStreamVolumeSlider()Lcom/discord/views/calls/VolumeSliderView;"
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lz/n/c/s;
move-result-object v1
const/16 v2, 0xb
aput-object v1, v0, v2
const-class v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;
const-string v2, "audioOutputSheetButton"
const-string v3, "getAudioOutputSheetButton()Landroid/widget/TextView;"
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lz/n/c/s;
move-result-object v1
const/16 v2, 0xc
aput-object v1, v0, v2
const-class v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;
const-string v2, "inviteSheetButton"
const-string v3, "getInviteSheetButton()Landroid/widget/TextView;"
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lz/n/c/s;
move-result-object v1
const/16 v2, 0xd
aput-object v1, v0, v2
const-class v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;
const-string v2, "screenshareSheetButton"
const-string v3, "getScreenshareSheetButton()Landroid/widget/TextView;"
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lz/n/c/s;
move-result-object v1
const/16 v2, 0xe
aput-object v1, v0, v2
const-class v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;
const-string v2, "deafenSheetButton"
const-string v3, "getDeafenSheetButton()Landroid/widget/TextView;"
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lz/n/c/s;
move-result-object v1
const/16 v2, 0xf
aput-object v1, v0, v2
sput-object v0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->$$delegatedProperties:[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/widgets/voice/controls/FloatingVoiceControlsView2;-><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/widgets/voice/controls/FloatingVoiceControlsView2;-><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
const-string v0, "ctx"
invoke-static {p1, v0}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, p1, p2, p3}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
const p1, 0x7f0a042c
invoke-static {p0, p1}, Lz/i/s;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->peekContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
const p1, 0x7f0a0433
invoke-static {p0, p1}, Lz/i/s;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->video$delegate:Lkotlin/properties/ReadOnlyProperty;
const p1, 0x7f0a0426
invoke-static {p0, p1}, Lz/i/s;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->audioOutputContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
const p1, 0x7f0a0423
invoke-static {p0, p1}, Lz/i/s;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->audioOutputSelector$delegate:Lkotlin/properties/ReadOnlyProperty;
const p1, 0x7f0a0424
invoke-static {p0, p1}, Lz/i/s;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->audioOutputSelectorMore$delegate:Lkotlin/properties/ReadOnlyProperty;
const p1, 0x7f0a042e
invoke-static {p0, p1}, Lz/i/s;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->screenshare$delegate:Lkotlin/properties/ReadOnlyProperty;
const p1, 0x7f0a042b
invoke-static {p0, p1}, Lz/i/s;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->mute$delegate:Lkotlin/properties/ReadOnlyProperty;
const p1, 0x7f0a0428
invoke-static {p0, p1}, Lz/i/s;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->disconnect$delegate:Lkotlin/properties/ReadOnlyProperty;
const p1, 0x7f0a0430
invoke-static {p0, p1}, Lz/i/s;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->stopWatching$delegate:Lkotlin/properties/ReadOnlyProperty;
const p1, 0x7f0a042d
invoke-static {p0, p1}, Lz/i/s;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->pushToTalkButton$delegate:Lkotlin/properties/ReadOnlyProperty;
const p1, 0x7f0a0431
invoke-static {p0, p1}, Lz/i/s;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->streamVolumeLabel$delegate:Lkotlin/properties/ReadOnlyProperty;
const p1, 0x7f0a0432
invoke-static {p0, p1}, Lz/i/s;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->streamVolumeSlider$delegate:Lkotlin/properties/ReadOnlyProperty;
const p1, 0x7f0a0425
invoke-static {p0, p1}, Lz/i/s;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->audioOutputSheetButton$delegate:Lkotlin/properties/ReadOnlyProperty;
const p1, 0x7f0a042a
invoke-static {p0, p1}, Lz/i/s;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->inviteSheetButton$delegate:Lkotlin/properties/ReadOnlyProperty;
const p1, 0x7f0a042f
invoke-static {p0, p1}, Lz/i/s;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->screenshareSheetButton$delegate:Lkotlin/properties/ReadOnlyProperty;
const p1, 0x7f0a0427
invoke-static {p0, p1}, Lz/i/s;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->deafenSheetButton$delegate:Lkotlin/properties/ReadOnlyProperty;
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
move-result-object p1
const p2, 0x7f0d005a
invoke-static {p1, p2, p0}, Landroid/widget/LinearLayout;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
return-void
.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/widgets/voice/controls/FloatingVoiceControlsView2;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
return-void
.end method
.method private final configureMuteButton(Lcom/discord/widgets/voice/model/CallModel;Lkotlin/jvm/functions/Function0;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/discord/widgets/voice/model/CallModel;",
"Lkotlin/jvm/functions/Function0<",
"Lkotlin/Unit;",
">;)V"
}
.end annotation
invoke-virtual {p1}, Lcom/discord/widgets/voice/model/CallModel;->isMeMutedByAnySource()Z
move-result p1
if-eqz p1, :cond_0
const/4 v0, -0x1
goto :goto_0
:cond_0
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
move-result-object v0
const v1, 0x7f0602b5
invoke-static {v0, v1}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroid/content/Context;I)I
move-result v0
:goto_0
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getMute()Landroid/widget/ImageView;
move-result-object v1
invoke-static {v0}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
move-result-object v0
invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setBackgroundTintList(Landroid/content/res/ColorStateList;)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getMute()Landroid/widget/ImageView;
move-result-object v0
if-eqz p1, :cond_1
const v1, 0x7f08036e
goto :goto_1
:cond_1
const v1, 0x7f080379
:goto_1
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getMute()Landroid/widget/ImageView;
move-result-object v0
new-instance v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2$configureMuteButton$1;
invoke-direct {v1, p2}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2$configureMuteButton$1;-><init>(Lkotlin/jvm/functions/Function0;)V
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getMute()Landroid/widget/ImageView;
move-result-object p2
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
move-result-object v0
if-eqz p1, :cond_2
const p1, 0x7f121847
goto :goto_2
:cond_2
const p1, 0x7f121056
:goto_2
invoke-virtual {v0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object p1
invoke-virtual {p2, p1}, Landroid/widget/ImageView;->setContentDescription(Ljava/lang/CharSequence;)V
return-void
.end method
.method private final configureOutputSelectors(Lcom/discord/widgets/voice/controls/VoiceControlsOutputSelectorState;Lkotlin/jvm/functions/Function0;Z)V
.locals 12
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/discord/widgets/voice/controls/VoiceControlsOutputSelectorState;",
"Lkotlin/jvm/functions/Function0<",
"Lkotlin/Unit;",
">;Z)V"
}
.end annotation
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getAudioOutputContainer()Landroid/view/View;
move-result-object v0
const/4 v1, 0x0
const/16 v2, 0x8
if-eqz p3, :cond_0
const/4 v3, 0x0
goto :goto_0
:cond_0
const/16 v3, 0x8
:goto_0
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getAudioOutputSelector()Landroid/widget/ImageView;
move-result-object v0
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
move-result-object v3
invoke-virtual {p1}, Lcom/discord/widgets/voice/controls/VoiceControlsOutputSelectorState;->getAudioOutputIconRes()I
move-result v4
invoke-static {v3, v4}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
move-result-object v3
invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getAudioOutputSelector()Landroid/widget/ImageView;
move-result-object v0
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
move-result-object v3
const-string v4, "context"
invoke-static {v3, v4}, Lz/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v5, 0x1
invoke-virtual {p1, v3, v5}, Lcom/discord/widgets/voice/controls/VoiceControlsOutputSelectorState;->getBackgroundTint(Landroid/content/Context;Z)I
move-result v3
invoke-static {v3}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
move-result-object v3
invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setBackgroundTintList(Landroid/content/res/ColorStateList;)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getAudioOutputSheetButton()Landroid/widget/TextView;
move-result-object v0
xor-int/2addr p3, v5
if-eqz p3, :cond_1
const/4 p3, 0x0
goto :goto_1
:cond_1
const/16 p3, 0x8
:goto_1
invoke-virtual {v0, p3}, Landroid/view/View;->setVisibility(I)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getAudioOutputSheetButton()Landroid/widget/TextView;
move-result-object v5
invoke-virtual {p1}, Lcom/discord/widgets/voice/controls/VoiceControlsOutputSelectorState;->getAudioOutputIconRes()I
move-result v6
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/16 v10, 0xe
const/4 v11, 0x0
invoke-static/range {v5 .. v11}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setCompoundDrawableWithIntrinsicBounds$default(Landroid/widget/TextView;IIIIILjava/lang/Object;)V
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
move-result-object p3
invoke-static {p3, v4}, Lz/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p1, p3}, Lcom/discord/widgets/voice/controls/VoiceControlsOutputSelectorState;->getIconTint(Landroid/content/Context;)I
move-result p3
invoke-static {p0, p3}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroid/view/View;I)I
move-result p3
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getAudioOutputSelector()Landroid/widget/ImageView;
move-result-object v0
invoke-static {v0, p3}, Lcom/discord/utilities/color/ColorCompatKt;->tintWithColor(Landroid/widget/ImageView;I)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getAudioOutputSelectorMore()Landroid/widget/ImageView;
move-result-object v0
invoke-static {v0, p3}, Lcom/discord/utilities/color/ColorCompatKt;->tintWithColor(Landroid/widget/ImageView;I)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getAudioOutputSelectorMore()Landroid/widget/ImageView;
move-result-object p3
invoke-virtual {p1}, Lcom/discord/widgets/voice/controls/VoiceControlsOutputSelectorState;->getShowMoreOptions()Z
move-result p1
if-eqz p1, :cond_2
goto :goto_2
:cond_2
const/16 v1, 0x8
:goto_2
invoke-virtual {p3, v1}, Landroid/view/View;->setVisibility(I)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getAudioOutputSelector()Landroid/widget/ImageView;
move-result-object p1
new-instance p3, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2$configureOutputSelectors$1;
invoke-direct {p3, p2}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2$configureOutputSelectors$1;-><init>(Lkotlin/jvm/functions/Function0;)V
invoke-virtual {p1, p3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getAudioOutputSheetButton()Landroid/widget/TextView;
move-result-object p1
new-instance p3, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2$configureOutputSelectors$2;
invoke-direct {p3, p2}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2$configureOutputSelectors$2;-><init>(Lkotlin/jvm/functions/Function0;)V
invoke-virtual {p1, p3}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
return-void
.end method
.method private final configureScreenshareButtons(Lcom/discord/widgets/voice/model/CallModel;Lkotlin/jvm/functions/Function0;Z)V
.locals 11
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/discord/widgets/voice/model/CallModel;",
"Lkotlin/jvm/functions/Function0<",
"Lkotlin/Unit;",
">;Z)V"
}
.end annotation
invoke-virtual {p1}, Lcom/discord/widgets/voice/model/CallModel;->isStreaming()Z
move-result p1
if-eqz p1, :cond_0
const v0, 0x7f1216d4
goto :goto_0
:cond_0
const v0, 0x7f121024
:goto_0
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getScreenshare()Landroid/widget/ImageView;
move-result-object v1
const/4 v2, 0x0
const/16 v3, 0x8
if-eqz p3, :cond_1
const/4 v4, 0x0
goto :goto_1
:cond_1
const/16 v4, 0x8
:goto_1
invoke-virtual {v1, v4}, Landroid/view/View;->setVisibility(I)V
if-eqz p1, :cond_2
const v1, 0x7f08037d
const v5, 0x7f08037d
goto :goto_2
:cond_2
const v1, 0x7f08037c
const v5, 0x7f08037c
:goto_2
const/4 v1, -0x1
if-eqz p1, :cond_3
const/high16 v4, -0x1000000
goto :goto_3
:cond_3
const/4 v4, -0x1
:goto_3
if-eqz p1, :cond_4
goto :goto_4
:cond_4
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
move-result-object p1
const v1, 0x7f0602b5
invoke-static {p1, v1}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroid/content/Context;I)I
move-result v1
:goto_4
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getScreenshare()Landroid/widget/ImageView;
move-result-object p1
invoke-virtual {p1, v5}, Landroid/widget/ImageView;->setImageResource(I)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getScreenshare()Landroid/widget/ImageView;
move-result-object p1
invoke-static {v1}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
move-result-object v1
invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setBackgroundTintList(Landroid/content/res/ColorStateList;)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getScreenshare()Landroid/widget/ImageView;
move-result-object p1
invoke-static {v4}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
move-result-object v1
invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setImageTintList(Landroid/content/res/ColorStateList;)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getScreenshare()Landroid/widget/ImageView;
move-result-object p1
new-instance v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2$configureScreenshareButtons$1;
invoke-direct {v1, p2}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2$configureScreenshareButtons$1;-><init>(Lkotlin/jvm/functions/Function0;)V
invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getScreenshareSheetButton()Landroid/widget/TextView;
move-result-object p1
xor-int/lit8 p3, p3, 0x1
if-eqz p3, :cond_5
goto :goto_5
:cond_5
const/16 v2, 0x8
:goto_5
invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getScreenshareSheetButton()Landroid/widget/TextView;
move-result-object p1
new-instance p3, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2$configureScreenshareButtons$2;
invoke-direct {p3, p2}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2$configureScreenshareButtons$2;-><init>(Lkotlin/jvm/functions/Function0;)V
invoke-virtual {p1, p3}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getScreenshareSheetButton()Landroid/widget/TextView;
move-result-object v4
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/16 v9, 0xe
const/4 v10, 0x0
invoke-static/range {v4 .. v10}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setCompoundDrawableWithIntrinsicBounds$default(Landroid/widget/TextView;IIIIILjava/lang/Object;)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getScreenshareSheetButton()Landroid/widget/TextView;
move-result-object p1
invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V
return-void
.end method
.method private final configureStreamVolume(ZFLkotlin/jvm/functions/Function2;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(ZF",
"Lkotlin/jvm/functions/Function2<",
"-",
"Ljava/lang/Float;",
"-",
"Ljava/lang/Boolean;",
"Lkotlin/Unit;",
">;)V"
}
.end annotation
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getStreamVolumeLabel()Landroid/view/View;
move-result-object v0
const/4 v1, 0x0
const/16 v2, 0x8
if-eqz p1, :cond_0
const/4 v3, 0x0
goto :goto_0
:cond_0
const/16 v3, 0x8
:goto_0
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getStreamVolumeSlider()Lcom/discord/views/calls/VolumeSliderView;
move-result-object v0
if-eqz p1, :cond_1
goto :goto_1
:cond_1
const/16 v1, 0x8
:goto_1
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getStreamVolumeSlider()Lcom/discord/views/calls/VolumeSliderView;
move-result-object p1
invoke-static {p2}, Lz/i/s;->roundToInt(F)I
move-result p2
invoke-virtual {p1, p2}, Lcom/discord/views/calls/VolumeSliderView;->a(I)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getStreamVolumeSlider()Lcom/discord/views/calls/VolumeSliderView;
move-result-object p1
invoke-virtual {p1, p3}, Lcom/discord/views/calls/VolumeSliderView;->setOnVolumeChange(Lkotlin/jvm/functions/Function2;)V
return-void
.end method
.method private final configureVideoButton(Lcom/discord/widgets/voice/model/CallModel;Lkotlin/jvm/functions/Function0;Z)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/discord/widgets/voice/model/CallModel;",
"Lkotlin/jvm/functions/Function0<",
"Lkotlin/Unit;",
">;Z)V"
}
.end annotation
invoke-virtual {p1}, Lcom/discord/widgets/voice/model/CallModel;->getSelectedVideoDevice()Lco/discord/media_engine/VideoInputDeviceDescription;
move-result-object v0
const/4 v1, 0x1
const/4 v2, 0x0
if-eqz v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
invoke-virtual {p1}, Lcom/discord/widgets/voice/model/CallModel;->getVideoDevices()Ljava/util/List;
move-result-object p1
invoke-interface {p1}, Ljava/util/Collection;->isEmpty()Z
move-result p1
xor-int/2addr p1, v1
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getVideo()Landroid/widget/ImageView;
move-result-object v3
if-eqz p1, :cond_1
if-eqz p3, :cond_1
goto :goto_1
:cond_1
const/4 v1, 0x0
:goto_1
if-eqz v1, :cond_2
goto :goto_2
:cond_2
const/16 v2, 0x8
:goto_2
invoke-virtual {v3, v2}, Landroid/view/View;->setVisibility(I)V
const/4 p1, -0x1
if-eqz v0, :cond_3
const/high16 p3, -0x1000000
goto :goto_3
:cond_3
const/4 p3, -0x1
:goto_3
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getVideo()Landroid/widget/ImageView;
move-result-object v1
invoke-static {p3}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
move-result-object p3
invoke-virtual {v1, p3}, Landroid/widget/ImageView;->setImageTintList(Landroid/content/res/ColorStateList;)V
if-eqz v0, :cond_4
goto :goto_4
:cond_4
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
move-result-object p1
const p3, 0x7f0602b5
invoke-static {p1, p3}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroid/content/Context;I)I
move-result p1
:goto_4
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getVideo()Landroid/widget/ImageView;
move-result-object p3
invoke-static {p1}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
move-result-object p1
invoke-virtual {p3, p1}, Landroid/widget/ImageView;->setBackgroundTintList(Landroid/content/res/ColorStateList;)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getVideo()Landroid/widget/ImageView;
move-result-object p1
new-instance p3, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2$configureVideoButton$1;
invoke-direct {p3, p2}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2$configureVideoButton$1;-><init>(Lkotlin/jvm/functions/Function0;)V
invoke-virtual {p1, p3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
return-void
.end method
.method private final getAudioOutputContainer()Landroid/view/View;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->audioOutputContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
const/4 v2, 0x2
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/View;
return-object v0
.end method
.method private final getAudioOutputSelector()Landroid/widget/ImageView;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->audioOutputSelector$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
const/4 v2, 0x3
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/widget/ImageView;
return-object v0
.end method
.method private final getAudioOutputSelectorMore()Landroid/widget/ImageView;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->audioOutputSelectorMore$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
const/4 v2, 0x4
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/widget/ImageView;
return-object v0
.end method
.method private final getAudioOutputSheetButton()Landroid/widget/TextView;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->audioOutputSheetButton$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
const/16 v2, 0xc
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 getDeafenSheetButton()Landroid/widget/TextView;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->deafenSheetButton$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
const/16 v2, 0xf
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 getDisconnect()Landroid/view/View;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->disconnect$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->$$delegatedProperties:[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/view/View;
return-object v0
.end method
.method private final getInviteSheetButton()Landroid/widget/TextView;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->inviteSheetButton$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
const/16 v2, 0xd
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 getMute()Landroid/widget/ImageView;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->mute$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
const/4 v2, 0x6
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/widget/ImageView;
return-object v0
.end method
.method private final getPeekContainer()Landroid/view/View;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->peekContainer$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
const/4 v2, 0x0
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/View;
return-object v0
.end method
.method private final getPushToTalkButton()Landroid/view/View;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->pushToTalkButton$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
const/16 v2, 0x9
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/View;
return-object v0
.end method
.method private final getScreenshare()Landroid/widget/ImageView;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->screenshare$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
const/4 v2, 0x5
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/widget/ImageView;
return-object v0
.end method
.method private final getScreenshareSheetButton()Landroid/widget/TextView;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->screenshareSheetButton$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
const/16 v2, 0xe
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 getStopWatching()Landroid/view/View;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->stopWatching$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->$$delegatedProperties:[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 getStreamVolumeLabel()Landroid/view/View;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->streamVolumeLabel$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
const/16 v2, 0xa
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/View;
return-object v0
.end method
.method private final getStreamVolumeSlider()Lcom/discord/views/calls/VolumeSliderView;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->streamVolumeSlider$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
const/16 v2, 0xb
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/discord/views/calls/VolumeSliderView;
return-object v0
.end method
.method private final getVideo()Landroid/widget/ImageView;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->video$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
const/4 v2, 0x1
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/widget/ImageView;
return-object v0
.end method
# virtual methods
.method public final configureUI(Lcom/discord/widgets/voice/model/CallModel;Lcom/discord/widgets/voice/controls/VoiceControlsOutputSelectorState;ZZZZZZLkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;ZFLkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function0;)V
.locals 17
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/discord/widgets/voice/model/CallModel;",
"Lcom/discord/widgets/voice/controls/VoiceControlsOutputSelectorState;",
"ZZZZZZ",
"Lkotlin/jvm/functions/Function0<",
"Lkotlin/Unit;",
">;",
"Lkotlin/jvm/functions/Function0<",
"Lkotlin/Unit;",
">;",
"Lkotlin/jvm/functions/Function0<",
"Lkotlin/Unit;",
">;",
"Lkotlin/jvm/functions/Function0<",
"Lkotlin/Unit;",
">;",
"Lkotlin/jvm/functions/Function0<",
"Lkotlin/Unit;",
">;",
"Lkotlin/jvm/functions/Function0<",
"Lkotlin/Unit;",
">;",
"Lkotlin/jvm/functions/Function0<",
"Lkotlin/Unit;",
">;ZF",
"Lkotlin/jvm/functions/Function2<",
"-",
"Ljava/lang/Float;",
"-",
"Ljava/lang/Boolean;",
"Lkotlin/Unit;",
">;",
"Lkotlin/jvm/functions/Function0<",
"Lkotlin/Unit;",
">;)V"
}
.end annotation
move-object/from16 v0, p0
move-object/from16 v1, p1
move-object/from16 v2, p2
move/from16 v3, p5
move/from16 v4, p6
move-object/from16 v5, p9
move-object/from16 v6, p10
move-object/from16 v7, p11
move-object/from16 v8, p12
move-object/from16 v9, p13
move-object/from16 v10, p14
move-object/from16 v11, p15
move-object/from16 v12, p18
move-object/from16 v13, p19
const-string v14, "model"
invoke-static {v1, v14}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v14, "outputSelectorState"
invoke-static {v2, v14}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v14, "onStopWatchingClick"
invoke-static {v5, v14}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v14, "onDisconnectClick"
invoke-static {v6, v14}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v14, "onAudioOutputClick"
invoke-static {v7, v14}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v14, "onVideoClick"
invoke-static {v8, v14}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v14, "onMuteClick"
invoke-static {v9, v14}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v14, "onInviteClick"
invoke-static {v10, v14}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v14, "onScreenshareClick"
invoke-static {v11, v14}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v14, "onStreamVolumeChange"
invoke-static {v12, v14}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v14, "onDeafenPressed"
invoke-static {v13, v14}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getStopWatching()Landroid/view/View;
move-result-object v14
const/16 v16, 0x8
if-eqz p7, :cond_0
const/4 v15, 0x0
goto :goto_0
:cond_0
const/16 v15, 0x8
:goto_0
invoke-virtual {v14, v15}, Landroid/view/View;->setVisibility(I)V
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getStopWatching()Landroid/view/View;
move-result-object v14
new-instance v15, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2$configureUI$1;
invoke-direct {v15, v5}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2$configureUI$1;-><init>(Lkotlin/jvm/functions/Function0;)V
invoke-virtual {v14, v15}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getDisconnect()Landroid/view/View;
move-result-object v5
if-eqz p8, :cond_1
const/4 v14, 0x0
goto :goto_1
:cond_1
const/16 v14, 0x8
:goto_1
invoke-virtual {v5, v14}, Landroid/view/View;->setVisibility(I)V
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getDisconnect()Landroid/view/View;
move-result-object v5
new-instance v14, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2$configureUI$2;
invoke-direct {v14, v6}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2$configureUI$2;-><init>(Lkotlin/jvm/functions/Function0;)V
invoke-virtual {v5, v14}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getPushToTalkButton()Landroid/view/View;
move-result-object v5
if-eqz p4, :cond_2
const/4 v6, 0x0
goto :goto_2
:cond_2
const/16 v6, 0x8
:goto_2
invoke-virtual {v5, v6}, Landroid/view/View;->setVisibility(I)V
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getDeafenSheetButton()Landroid/widget/TextView;
move-result-object v5
if-eqz v3, :cond_3
const v6, 0x7f121840
goto :goto_3
:cond_3
const v6, 0x7f1205b3
:goto_3
invoke-static {v0, v6}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I)Ljava/lang/String;
move-result-object v6
invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getDeafenSheetButton()Landroid/widget/TextView;
move-result-object v5
new-instance v6, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2$configureUI$3;
invoke-direct {v6, v13}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2$configureUI$3;-><init>(Lkotlin/jvm/functions/Function0;)V
invoke-virtual {v5, v6}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getDeafenSheetButton()Landroid/widget/TextView;
move-result-object v5
invoke-virtual {v5, v3}, Landroid/widget/TextView;->setActivated(Z)V
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getInviteSheetButton()Landroid/widget/TextView;
move-result-object v3
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/voice/model/CallModel;->canInvite()Z
move-result v5
if-eqz v5, :cond_4
const/4 v15, 0x0
goto :goto_4
:cond_4
const/16 v15, 0x8
:goto_4
invoke-virtual {v3, v15}, Landroid/view/View;->setVisibility(I)V
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getInviteSheetButton()Landroid/widget/TextView;
move-result-object v3
new-instance v5, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2$configureUI$4;
invoke-direct {v5, v10}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2$configureUI$4;-><init>(Lkotlin/jvm/functions/Function0;)V
invoke-virtual {v3, v5}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
invoke-direct {v0, v1, v9}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->configureMuteButton(Lcom/discord/widgets/voice/model/CallModel;Lkotlin/jvm/functions/Function0;)V
xor-int/lit8 v3, v4, 0x1
invoke-direct {v0, v2, v7, v3}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->configureOutputSelectors(Lcom/discord/widgets/voice/controls/VoiceControlsOutputSelectorState;Lkotlin/jvm/functions/Function0;Z)V
move/from16 v2, p3
invoke-direct {v0, v1, v8, v2}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->configureVideoButton(Lcom/discord/widgets/voice/model/CallModel;Lkotlin/jvm/functions/Function0;Z)V
invoke-direct {v0, v1, v11, v4}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->configureScreenshareButtons(Lcom/discord/widgets/voice/model/CallModel;Lkotlin/jvm/functions/Function0;Z)V
move/from16 v1, p16
move/from16 v2, p17
invoke-direct {v0, v1, v2, v12}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->configureStreamVolume(ZFLkotlin/jvm/functions/Function2;)V
return-void
.end method
.method public final getPeekHeight()I
.locals 1
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getPeekContainer()Landroid/view/View;
move-result-object v0
invoke-virtual {v0}, Landroid/view/View;->getMeasuredHeight()I
move-result v0
return v0
.end method
.method public onAttachedToWindow()V
.locals 3
invoke-super {p0}, Landroid/widget/LinearLayout;->onAttachedToWindow()V
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getResources()Landroid/content/res/Resources;
move-result-object v0
const-string v1, "resources"
invoke-static {v0, v1}, Lz/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
move-result-object v0
iget v0, v0, Landroid/content/res/Configuration;->orientation:I
const/4 v2, 0x1
if-ne v0, v2, :cond_0
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getResources()Landroid/content/res/Resources;
move-result-object v0
invoke-static {v0, v1}, Lz/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
move-result-object v0
iget v0, v0, Landroid/util/DisplayMetrics;->widthPixels:I
goto :goto_0
:cond_0
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getResources()Landroid/content/res/Resources;
move-result-object v0
invoke-static {v0, v1}, Lz/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
move-result-object v0
iget v0, v0, Landroid/util/DisplayMetrics;->heightPixels:I
:goto_0
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v1
iput v0, v1, Landroid/view/ViewGroup$LayoutParams;->width:I
invoke-virtual {p0, v1}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
return-void
.end method
.method public final setOnPTTListener(Lcom/discord/utilities/press/OnPressListener;)V
.locals 1
const-string v0, "listener"
invoke-static {p1, v0}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView2;->getPushToTalkButton()Landroid/view/View;
move-result-object v0
invoke-virtual {v0, p1}, Landroid/view/View;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V
return-void
.end method