63 lines
1.5 KiB
Smali
63 lines
1.5 KiB
Smali
|
.class public final Lcom/discord/widgets/settings/WidgetSettingsVoice$onViewBoundOrOnResume$1;
|
||
|
.super Lf/a/n/g;
|
||
|
.source "WidgetSettingsVoice.kt"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
value = Lcom/discord/widgets/settings/WidgetSettingsVoice;->onViewBoundOrOnResume()V
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x19
|
||
|
name = null
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>()V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Lf/a/n/g;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public onProgressChanged(Landroid/widget/SeekBar;IZ)V
|
||
|
.locals 0
|
||
|
|
||
|
if-eqz p1, :cond_1
|
||
|
|
||
|
if-eqz p3, :cond_0
|
||
|
|
||
|
sget-object p1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/stores/StoreStream$Companion;->getMediaSettings()Lcom/discord/stores/StoreMediaSettings;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
sget-object p3, Lcom/discord/utilities/voice/PerceptualSoundUtils;->INSTANCE:Lcom/discord/utilities/voice/PerceptualSoundUtils;
|
||
|
|
||
|
int-to-float p2, p2
|
||
|
|
||
|
invoke-virtual {p3, p2}, Lcom/discord/utilities/voice/PerceptualSoundUtils;->perceptualToAmplitude(F)F
|
||
|
|
||
|
move-result p2
|
||
|
|
||
|
invoke-virtual {p1, p2}, Lcom/discord/stores/StoreMediaSettings;->setOutputVolume(F)V
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
|
||
|
:cond_1
|
||
|
const-string p1, "seekBar"
|
||
|
|
||
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
||
|
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
throw p1
|
||
|
.end method
|