257 lines
10 KiB
Smali
257 lines
10 KiB
Smali
.class public final Lcom/discord/stores/VoiceConfigurationCache$write$1;
|
|
.super Ly/n/c/k;
|
|
.source "VoiceConfigurationCache.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/stores/VoiceConfigurationCache;->write(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 = {
|
|
"Ly/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;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/VoiceConfigurationCache$write$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
invoke-direct {p0, p1}, Ly/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$write$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 7
|
|
|
|
const-string v0, "editor"
|
|
|
|
invoke-static {p1, v0}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/VoiceConfigurationCache$write$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->isSelfMuted()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$write$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->isSelfDeafened()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$write$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$write$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getVadUseKrisp()Z
|
|
|
|
move-result v0
|
|
|
|
const-string v1, "CACHE_KEY_VOICE_SETTINGS_VAD_USE_KRISP"
|
|
|
|
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$write$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$write$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$write$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$write$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$write$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$write$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getInputMode()Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;->getNumeral()I
|
|
|
|
move-result v0
|
|
|
|
const-string v1, "CACHE_KEY_VOICE_SETTINGS_INPUT_MODE"
|
|
|
|
invoke-interface {p1, v1, v0}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/VoiceConfigurationCache$write$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;
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/VoiceConfigurationCache$write$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getMutedUsers()Ljava/util/Map;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x4
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const-string v2, "MUTED_USERS_V2"
|
|
|
|
move-object v1, p1
|
|
|
|
invoke-static/range {v1 .. v6}, Lcom/discord/utilities/cache/SharedPreferenceExtensionsKt;->putStringEntrySetAsMap$default(Landroid/content/SharedPreferences$Editor;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;ILjava/lang/Object;)V
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/VoiceConfigurationCache$write$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getUserOutputVolumes()Ljava/util/Map;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v2, "USER_OUTPUT_VOLUMES_V2"
|
|
|
|
invoke-static/range {v1 .. v6}, Lcom/discord/utilities/cache/SharedPreferenceExtensionsKt;->putStringEntrySetAsMap$default(Landroid/content/SharedPreferences$Editor;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;ILjava/lang/Object;)V
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/VoiceConfigurationCache$write$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getEnableVideoHardwareScaling()Z
|
|
|
|
move-result v0
|
|
|
|
const-string v1, "VIDEO_ENABLE_HARDWARE_SCALING"
|
|
|
|
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$write$1;->$voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getVoiceParticipantsHidden()Z
|
|
|
|
move-result v0
|
|
|
|
const-string v1, "CACHE_KEY_HIDE_VOICE_PARTICIPANTS"
|
|
|
|
invoke-interface {p1, v1, v0}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
|
|
|
|
return-void
|
|
.end method
|