212 lines
8.4 KiB
Smali
212 lines
8.4 KiB
Smali
.class public final Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;
|
|
.super Lj0/n/c/i;
|
|
.source "VoiceConfigurationCache.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/stores/VoiceConfigurationCache;->writeToSharedPreferences(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lj0/n/c/i;",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"Landroid/content/SharedPreferences$Editor;",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
.field public final synthetic this$0:Lcom/discord/stores/VoiceConfigurationCache;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/stores/VoiceConfigurationCache;Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->this$0:Lcom/discord/stores/VoiceConfigurationCache;
|
|
|
|
iput-object p2, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
invoke-direct {p0, p1}, Lj0/n/c/i;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Landroid/content/SharedPreferences$Editor;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->invoke(Landroid/content/SharedPreferences$Editor;)V
|
|
|
|
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final invoke(Landroid/content/SharedPreferences$Editor;)V
|
|
.locals 5
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
iget-object v1, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->isMuted()Z
|
|
|
|
move-result v1
|
|
|
|
const-string v2, "CACHE_KEY_VOICE_SETTINGS_IS_MUTED"
|
|
|
|
invoke-interface {p1, v2, v1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
|
|
|
|
iget-object v1, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->isDeafened()Z
|
|
|
|
move-result v1
|
|
|
|
const-string v2, "CACHE_KEY_VOICE_SETTINGS_IS_DEAFENED"
|
|
|
|
invoke-interface {p1, v2, v1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
|
|
|
|
iget-object v1, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getAutomaticVad()Z
|
|
|
|
move-result v1
|
|
|
|
const-string v2, "CACHE_KEY_VOICE_SETTINGS_AUTOMATIC_VAD"
|
|
|
|
invoke-interface {p1, v2, v1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
|
|
|
|
iget-object v1, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getAutomaticGainControl()Z
|
|
|
|
move-result v1
|
|
|
|
const-string v2, "CACHE_KEY_VOICE_SETTINGS_AUTOMATIC_GAIN_CONTROL"
|
|
|
|
invoke-interface {p1, v2, v1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
|
|
|
|
iget-object v1, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getNoiseProcessing()Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;
|
|
|
|
move-result-object v1
|
|
|
|
sget-object v2, Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;->Cancellation:Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;
|
|
|
|
const/4 v3, 0x1
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-ne v1, v2, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
const-string v2, "CACHE_KEY_VOICE_SETTINGS_NOISE_CANCELLATION"
|
|
|
|
invoke-interface {p1, v2, v1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
|
|
|
|
iget-object v1, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getEchoCancellation()Z
|
|
|
|
move-result v1
|
|
|
|
const-string v2, "CACHE_KEY_VOICE_SETTINGS_ECHO_CANCELLATION"
|
|
|
|
invoke-interface {p1, v2, v1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
|
|
|
|
iget-object v1, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getNoiseProcessing()Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;
|
|
|
|
move-result-object v1
|
|
|
|
sget-object v2, Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;->Suppression:Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;
|
|
|
|
if-ne v1, v2, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v3, 0x0
|
|
|
|
:goto_1
|
|
const-string v1, "CACHE_KEY_VOICE_SETTINGS_NOISE_SUPPRESSION"
|
|
|
|
invoke-interface {p1, v1, v3}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
|
|
|
|
iget-object v1, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getSensitivity()F
|
|
|
|
move-result v1
|
|
|
|
const-string v2, "CACHE_KEY_VOICE_SETTINGS_SENSITIVITY"
|
|
|
|
invoke-interface {p1, v2, v1}, Landroid/content/SharedPreferences$Editor;->putFloat(Ljava/lang/String;F)Landroid/content/SharedPreferences$Editor;
|
|
|
|
iget-object v1, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->this$0:Lcom/discord/stores/VoiceConfigurationCache;
|
|
|
|
invoke-static {v1}, Lcom/discord/stores/VoiceConfigurationCache;->access$getInputModeCache$p(Lcom/discord/stores/VoiceConfigurationCache;)Lcom/discord/utilities/persister/Persister;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
invoke-virtual {v2}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getInputMode()Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v3, 0x2
|
|
|
|
invoke-static {v1, v2, v4, v3, v0}, Lcom/discord/utilities/persister/Persister;->set$default(Lcom/discord/utilities/persister/Persister;Ljava/lang/Object;ZILjava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getOutputVolume()F
|
|
|
|
move-result v0
|
|
|
|
const-string v1, "CACHE_KEY_VOICE_SETTINGS_OUTPUT_VOLUME"
|
|
|
|
invoke-interface {p1, v1, v0}, Landroid/content/SharedPreferences$Editor;->putFloat(Ljava/lang/String;F)Landroid/content/SharedPreferences$Editor;
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
const-string p1, "editor"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|