328 lines
9.8 KiB
Smali
328 lines
9.8 KiB
Smali
.class public final enum Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
.super Ljava/lang/Enum;
|
|
.source "FloatingVoiceControlsView.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x4019
|
|
name = "OutputSelectorState"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Enum<",
|
|
"Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic $VALUES:[Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
|
|
.field public static final enum BLUETOOTH_ON_AND_MORE:Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
|
|
.field public static final enum SPEAKER_OFF:Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
|
|
.field public static final enum SPEAKER_OFF_AND_MORE:Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
|
|
.field public static final enum SPEAKER_ON:Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
|
|
.field public static final enum SPEAKER_ON_AND_MORE:Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
|
|
|
|
# instance fields
|
|
.field public final audioOutputIconRes:I
|
|
|
|
.field public final isButtonActive:Z
|
|
|
|
.field public final showMoreOptions:Z
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 14
|
|
|
|
const/4 v0, 0x5
|
|
|
|
new-array v0, v0, [Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
|
|
new-instance v7, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
|
|
const-string v2, "SPEAKER_ON"
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const v4, 0x7f08041b
|
|
|
|
const/4 v5, 0x1
|
|
|
|
const/4 v6, 0x0
|
|
|
|
move-object v1, v7
|
|
|
|
invoke-direct/range {v1 .. v6}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;-><init>(Ljava/lang/String;IIZZ)V
|
|
|
|
sput-object v7, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;->SPEAKER_ON:Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
aput-object v7, v0, v1
|
|
|
|
new-instance v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
|
|
const-string v9, "SPEAKER_OFF"
|
|
|
|
const/4 v10, 0x1
|
|
|
|
const v11, 0x7f08041b
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
move-object v8, v1
|
|
|
|
invoke-direct/range {v8 .. v13}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;-><init>(Ljava/lang/String;IIZZ)V
|
|
|
|
sput-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;->SPEAKER_OFF:Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
|
|
const-string v4, "BLUETOOTH_ON_AND_MORE"
|
|
|
|
const/4 v5, 0x2
|
|
|
|
const v6, 0x7f08041c
|
|
|
|
const/4 v7, 0x1
|
|
|
|
const/4 v8, 0x1
|
|
|
|
move-object v3, v1
|
|
|
|
invoke-direct/range {v3 .. v8}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;-><init>(Ljava/lang/String;IIZZ)V
|
|
|
|
sput-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;->BLUETOOTH_ON_AND_MORE:Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
|
|
const/4 v2, 0x2
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
|
|
const-string v4, "SPEAKER_ON_AND_MORE"
|
|
|
|
const/4 v5, 0x3
|
|
|
|
const v6, 0x7f08041b
|
|
|
|
move-object v3, v1
|
|
|
|
invoke-direct/range {v3 .. v8}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;-><init>(Ljava/lang/String;IIZZ)V
|
|
|
|
sput-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;->SPEAKER_ON_AND_MORE:Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
|
|
const/4 v2, 0x3
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
|
|
const-string v4, "SPEAKER_OFF_AND_MORE"
|
|
|
|
const/4 v5, 0x4
|
|
|
|
const/4 v7, 0x0
|
|
|
|
move-object v3, v1
|
|
|
|
invoke-direct/range {v3 .. v8}, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;-><init>(Ljava/lang/String;IIZZ)V
|
|
|
|
sput-object v1, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;->SPEAKER_OFF_AND_MORE:Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
|
|
const/4 v2, 0x4
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
sput-object v0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;->$VALUES:[Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/lang/String;IIZZ)V
|
|
.locals 0
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(IZZ)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
|
|
|
|
iput p3, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;->audioOutputIconRes:I
|
|
|
|
iput-boolean p4, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;->isButtonActive:Z
|
|
|
|
iput-boolean p5, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;->showMoreOptions:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static valueOf(Ljava/lang/String;)Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
.locals 1
|
|
|
|
const-class v0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
|
|
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static values()[Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;->$VALUES:[Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
|
|
invoke-virtual {v0}, [Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;->clone()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, [Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final getAudioOutputIconRes()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;->audioOutputIconRes:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getBackgroundRes(Landroid/content/Context;)I
|
|
.locals 3
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;->isButtonActive:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
new-instance v0, Landroid/util/TypedValue;
|
|
|
|
invoke-direct {v0}, Landroid/util/TypedValue;-><init>()V
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
|
|
|
|
move-result-object p1
|
|
|
|
const v1, 0x7f0400a1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-virtual {p1, v1, v0, v2}, Landroid/content/res/Resources$Theme;->resolveAttribute(ILandroid/util/TypedValue;Z)Z
|
|
|
|
iget p1, v0, Landroid/util/TypedValue;->resourceId:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const p1, 0x7f08012c
|
|
|
|
:goto_0
|
|
return p1
|
|
|
|
:cond_1
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final getIconTint(Landroid/content/Context;)I
|
|
.locals 3
|
|
.annotation build Landroidx/annotation/ColorRes;
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;->isButtonActive:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
new-instance v0, Landroid/util/TypedValue;
|
|
|
|
invoke-direct {v0}, Landroid/util/TypedValue;-><init>()V
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
|
|
|
|
move-result-object p1
|
|
|
|
const v1, 0x7f0400a2
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-virtual {p1, v1, v0, v2}, Landroid/content/res/Resources$Theme;->resolveAttribute(ILandroid/util/TypedValue;Z)Z
|
|
|
|
iget p1, v0, Landroid/util/TypedValue;->resourceId:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const p1, 0x7f06026a
|
|
|
|
:goto_0
|
|
return p1
|
|
|
|
:cond_1
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final getShowMoreOptions()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;->showMoreOptions:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final isButtonActive()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/voice/controls/FloatingVoiceControlsView$OutputSelectorState;->isButtonActive:Z
|
|
|
|
return v0
|
|
.end method
|