apkfuckery/com.discord/smali/com/discord/stores/VoiceConfigurationCache$wri...

208 lines
8.4 KiB
Smali

.class public final Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;
.super Lc0/n/c/k;
.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 = {
"Lc0/n/c/k;",
"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}, Lc0/n/c/k;-><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-string v0, "editor"
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->isMuted()Z
move-result v0
const-string v1, "CACHE_KEY_VOICE_SETTINGS_IS_MUTED"
invoke-interface {p1, v1, v0}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
iget-object v0, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->isDeafened()Z
move-result v0
const-string v1, "CACHE_KEY_VOICE_SETTINGS_IS_DEAFENED"
invoke-interface {p1, v1, v0}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
iget-object v0, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getAutomaticVad()Z
move-result v0
const-string v1, "CACHE_KEY_VOICE_SETTINGS_AUTOMATIC_VAD"
invoke-interface {p1, v1, v0}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
iget-object v0, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getAutomaticGainControl()Z
move-result v0
const-string v1, "CACHE_KEY_VOICE_SETTINGS_AUTOMATIC_GAIN_CONTROL"
invoke-interface {p1, v1, v0}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
iget-object v0, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getNoiseProcessing()Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;
move-result-object v0
sget-object v1, Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;->Cancellation:Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;
const/4 v2, 0x1
const/4 v3, 0x0
if-ne v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
const-string v1, "CACHE_KEY_VOICE_SETTINGS_NOISE_CANCELLATION"
invoke-interface {p1, v1, v0}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
iget-object v0, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getEchoCancellation()Z
move-result v0
const-string v1, "CACHE_KEY_VOICE_SETTINGS_ECHO_CANCELLATION"
invoke-interface {p1, v1, v0}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
iget-object v0, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getNoiseProcessing()Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;
move-result-object v0
sget-object v1, Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;->Suppression:Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;
if-ne v0, v1, :cond_1
goto :goto_1
:cond_1
const/4 v2, 0x0
:goto_1
const-string v0, "CACHE_KEY_VOICE_SETTINGS_NOISE_SUPPRESSION"
invoke-interface {p1, v0, v2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
iget-object v0, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getSensitivity()F
move-result v0
const-string v1, "CACHE_KEY_VOICE_SETTINGS_SENSITIVITY"
invoke-interface {p1, v1, v0}, Landroid/content/SharedPreferences$Editor;->putFloat(Ljava/lang/String;F)Landroid/content/SharedPreferences$Editor;
iget-object v0, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->this$0:Lcom/discord/stores/VoiceConfigurationCache;
invoke-static {v0}, Lcom/discord/stores/VoiceConfigurationCache;->access$getInputModeCache$p(Lcom/discord/stores/VoiceConfigurationCache;)Lcom/discord/utilities/persister/Persister;
move-result-object v0
iget-object v1, p0, Lcom/discord/stores/VoiceConfigurationCache$writeToSharedPreferences$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
invoke-virtual {v1}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getInputMode()Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;
move-result-object v1
const/4 v2, 0x2
const/4 v4, 0x0
invoke-static {v0, v1, v3, v2, v4}, 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
.end method