792 lines
23 KiB
Smali
792 lines
23 KiB
Smali
.class public final Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;
|
|
.super Landroid/widget/FrameLayout;
|
|
.source "FloatingVoiceControlsView.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
# instance fields
|
|
.field public final audioOutputSelector$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final audioOutputSelectorMore$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final disconnect$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final mute$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public permissionProvider:Lcom/discord/app/AppPermissions$Requests;
|
|
|
|
.field public final stopWatching$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final video$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 6
|
|
|
|
const/4 v0, 0x6
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v1, Ly/u/b/u;
|
|
|
|
const-class v2, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;
|
|
|
|
invoke-static {v2}, Ly/u/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "video"
|
|
|
|
const-string v4, "getVideo()Landroid/widget/ImageView;"
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v2, Ly/u/b/x;->a:Ly/u/b/y;
|
|
|
|
invoke-virtual {v2, v1}, Ly/u/b/y;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
const/4 v1, 0x1
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;
|
|
|
|
invoke-static {v3}, Ly/u/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "audioOutputSelector"
|
|
|
|
const-string v5, "getAudioOutputSelector()Landroid/widget/ImageView;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/x;->a:Ly/u/b/y;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/y;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x2
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;
|
|
|
|
invoke-static {v3}, Ly/u/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "audioOutputSelectorMore"
|
|
|
|
const-string v5, "getAudioOutputSelectorMore()Landroid/widget/ImageView;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/x;->a:Ly/u/b/y;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/y;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x3
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;
|
|
|
|
invoke-static {v3}, Ly/u/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "mute"
|
|
|
|
const-string v5, "getMute()Landroid/widget/ImageView;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/x;->a:Ly/u/b/y;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/y;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x4
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;
|
|
|
|
invoke-static {v3}, Ly/u/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "disconnect"
|
|
|
|
const-string v5, "getDisconnect()Landroid/view/View;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/x;->a:Ly/u/b/y;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/y;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x5
|
|
|
|
new-instance v2, Ly/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;
|
|
|
|
invoke-static {v3}, Ly/u/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "stopWatching"
|
|
|
|
const-string v5, "getStopWatching()Landroid/view/View;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Ly/u/b/x;->a:Ly/u/b/y;
|
|
|
|
invoke-virtual {v3, v2}, Ly/u/b/y;->property1(Ly/u/b/t;)Ly/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
sput-object v0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->$$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/FloatingVoiceControlsView;-><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/FloatingVoiceControlsView;-><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 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
const p1, 0x7f0a0680
|
|
|
|
invoke-static {p0, p1}, Lf/n/a/j/a;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->video$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const p1, 0x7f0a067b
|
|
|
|
invoke-static {p0, p1}, Lf/n/a/j/a;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->audioOutputSelector$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const p1, 0x7f0a067c
|
|
|
|
invoke-static {p0, p1}, Lf/n/a/j/a;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->audioOutputSelectorMore$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const p1, 0x7f0a067e
|
|
|
|
invoke-static {p0, p1}, Lf/n/a/j/a;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->mute$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const p1, 0x7f0a067d
|
|
|
|
invoke-static {p0, p1}, Lf/n/a/j/a;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->disconnect$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const p1, 0x7f0a067f
|
|
|
|
invoke-static {p0, p1}, Lf/n/a/j/a;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->stopWatching$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
const p2, 0x7f0d01f0
|
|
|
|
invoke-static {p1, p2, p0}, Landroid/widget/FrameLayout;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "ctx"
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 0
|
|
|
|
and-int/lit8 p5, p4, 0x2
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
:cond_0
|
|
and-int/lit8 p4, p4, 0x4
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
const/4 p3, 0x0
|
|
|
|
:cond_1
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final getAudioOutputSelector()Landroid/widget/ImageView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->audioOutputSelector$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->$$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
|
|
|
|
.method private final getAudioOutputSelectorMore()Landroid/widget/ImageView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->audioOutputSelectorMore$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->$$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/widget/ImageView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getDisconnect()Landroid/view/View;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->disconnect$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->$$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/view/View;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getMute()Landroid/widget/ImageView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->mute$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->$$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 getStopWatching()Landroid/view/View;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->stopWatching$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->$$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/view/View;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getVideo()Landroid/widget/ImageView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->video$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->$$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/widget/ImageView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final configureUI(Lcom/discord/widgets/voice/model/CallModel;Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;ZZZLkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/discord/widgets/voice/model/CallModel;",
|
|
"Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;",
|
|
"ZZZ",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_d
|
|
|
|
if-eqz p2, :cond_c
|
|
|
|
if-eqz p6, :cond_b
|
|
|
|
if-eqz p7, :cond_a
|
|
|
|
if-eqz p8, :cond_9
|
|
|
|
if-eqz p9, :cond_8
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->getStopWatching()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
const/16 v2, 0x8
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
const/4 p4, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/16 p4, 0x8
|
|
|
|
:goto_0
|
|
invoke-virtual {v1, p4}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->getStopWatching()Landroid/view/View;
|
|
|
|
move-result-object p4
|
|
|
|
new-instance v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$configureUI$1;
|
|
|
|
invoke-direct {v1, p6}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$configureUI$1;-><init>(Lkotlin/jvm/functions/Function0;)V
|
|
|
|
invoke-virtual {p4, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->getDisconnect()Landroid/view/View;
|
|
|
|
move-result-object p4
|
|
|
|
if-eqz p5, :cond_1
|
|
|
|
const/4 p5, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/16 p5, 0x8
|
|
|
|
:goto_1
|
|
invoke-virtual {p4, p5}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->getDisconnect()Landroid/view/View;
|
|
|
|
move-result-object p4
|
|
|
|
new-instance p5, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$configureUI$2;
|
|
|
|
invoke-direct {p5, p7}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$configureUI$2;-><init>(Lkotlin/jvm/functions/Function0;)V
|
|
|
|
invoke-virtual {p4, p5}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->getMute()Landroid/widget/ImageView;
|
|
|
|
move-result-object p4
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/voice/model/CallModel;->isSelfMuted()Z
|
|
|
|
move-result p5
|
|
|
|
if-eqz p5, :cond_2
|
|
|
|
const p5, 0x7f08036d
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const p5, 0x7f080372
|
|
|
|
:goto_2
|
|
invoke-virtual {p4, p5}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->getMute()Landroid/widget/ImageView;
|
|
|
|
move-result-object p4
|
|
|
|
sget-object p5, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$configureUI$3;->INSTANCE:Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$configureUI$3;
|
|
|
|
invoke-virtual {p4, p5}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->getAudioOutputSelector()Landroid/widget/ImageView;
|
|
|
|
move-result-object p4
|
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object p5
|
|
|
|
invoke-virtual {p2}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;->getAudioOutputIconRes()I
|
|
|
|
move-result p6
|
|
|
|
invoke-virtual {p5, p6, v0}, Landroid/content/res/Resources;->getDrawable(ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p5
|
|
|
|
invoke-virtual {p4, p5}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->getAudioOutputSelector()Landroid/widget/ImageView;
|
|
|
|
move-result-object p4
|
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object p5
|
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p6
|
|
|
|
const-string p7, "context"
|
|
|
|
invoke-static {p6, p7}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p2, p6}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;->getBackgroundRes(Landroid/content/Context;)I
|
|
|
|
move-result p6
|
|
|
|
invoke-virtual {p5, p6, v0}, Landroid/content/res/Resources;->getDrawable(ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p5
|
|
|
|
invoke-virtual {p4, p5}, Landroid/widget/ImageView;->setBackground(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p4
|
|
|
|
invoke-static {p4, p7}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p2, p4}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;->getIconTint(Landroid/content/Context;)I
|
|
|
|
move-result p4
|
|
|
|
invoke-static {p0, p4}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroid/view/View;I)I
|
|
|
|
move-result p4
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->getAudioOutputSelector()Landroid/widget/ImageView;
|
|
|
|
move-result-object p5
|
|
|
|
invoke-static {p5, p4}, Lcom/discord/utilities/color/ColorCompatKt;->tintWithColor(Landroid/widget/ImageView;I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->getAudioOutputSelectorMore()Landroid/widget/ImageView;
|
|
|
|
move-result-object p5
|
|
|
|
invoke-static {p5, p4}, Lcom/discord/utilities/color/ColorCompatKt;->tintWithColor(Landroid/widget/ImageView;I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->getAudioOutputSelectorMore()Landroid/widget/ImageView;
|
|
|
|
move-result-object p4
|
|
|
|
invoke-virtual {p2}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;->getShowMoreOptions()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
const/4 p2, 0x0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
const/16 p2, 0x8
|
|
|
|
:goto_3
|
|
invoke-virtual {p4, p2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->getAudioOutputSelector()Landroid/widget/ImageView;
|
|
|
|
move-result-object p2
|
|
|
|
new-instance p4, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$configureUI$4;
|
|
|
|
invoke-direct {p4, p8}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$configureUI$4;-><init>(Lkotlin/jvm/functions/Function0;)V
|
|
|
|
invoke-virtual {p2, p4}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/voice/model/CallModel;->getSelectedVideoDevice()Lco/discord/media_engine/VideoInputDeviceDescription;
|
|
|
|
move-result-object p2
|
|
|
|
const/4 p4, 0x1
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
const/4 p2, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
const/4 p2, 0x0
|
|
|
|
:goto_4
|
|
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, p4
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->getVideo()Landroid/widget/ImageView;
|
|
|
|
move-result-object p5
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
if-eqz p3, :cond_5
|
|
|
|
goto :goto_5
|
|
|
|
:cond_5
|
|
const/4 p4, 0x0
|
|
|
|
:goto_5
|
|
if-eqz p4, :cond_6
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:cond_6
|
|
invoke-virtual {p5, v2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->getVideo()Landroid/widget/ImageView;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p2, :cond_7
|
|
|
|
const p2, 0x7f080465
|
|
|
|
goto :goto_6
|
|
|
|
:cond_7
|
|
const p2, 0x7f080464
|
|
|
|
:goto_6
|
|
invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->getVideo()Landroid/widget/ImageView;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance p2, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$configureUI$5;
|
|
|
|
invoke-direct {p2, p9}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$configureUI$5;-><init>(Lkotlin/jvm/functions/Function0;)V
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-void
|
|
|
|
:cond_8
|
|
const-string p1, "onVideoClick"
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_9
|
|
const-string p1, "onAudioOutputClick"
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_a
|
|
const-string p1, "onDisconnectClick"
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_b
|
|
const-string p1, "onStopWatchingClick"
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_c
|
|
const-string p1, "outputSelectorState"
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_d
|
|
const-string p1, "model"
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final getPermissionProvider()Lcom/discord/app/AppPermissions$Requests;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->permissionProvider:Lcom/discord/app/AppPermissions$Requests;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final setPermissionProvider(Lcom/discord/app/AppPermissions$Requests;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;->permissionProvider:Lcom/discord/app/AppPermissions$Requests;
|
|
|
|
return-void
|
|
.end method
|