discord-jadx/app/src/main/java/com/discord/stores/StoreAudioManagerV2$toggleS...

29 lines
1.1 KiB
Java

package com.discord.stores;
import com.discord.rtcconnection.audio.DiscordAudioManager;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: StoreAudioManagerV2.kt */
public final class StoreAudioManagerV2$toggleSpeakerOutput$1 extends o implements Function0<Unit> {
public final /* synthetic */ StoreAudioManagerV2 this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreAudioManagerV2$toggleSpeakerOutput$1(StoreAudioManagerV2 storeAudioManagerV2) {
super(0);
this.this$0 = storeAudioManagerV2;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
if (this.this$0.getEnabled()) {
if (this.this$0.getState$app_productionBetaRelease().getActiveAudioDevice().ordinal() != 2) {
this.this$0.selectOutputDevice(DiscordAudioManager.DeviceTypes.SPEAKERPHONE);
} else {
this.this$0.selectOutputDevice(DiscordAudioManager.DeviceTypes.DEFAULT);
}
}
}
}