fix formating for previous commit

This commit is contained in:
Daniel Gultsch 2024-04-20 10:58:20 +02:00
parent ed2e0ab73c
commit 538a714e29
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -152,27 +152,22 @@ public class CallIntegration extends Connection {
return getAudioDevicesFallback();
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
return getAudioDevicesUpsideDownCake();
} else {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
return getAudioDevicesOreo();
} else {
throw new AssertionError("Trying to get audio devices on unsupported version");
}
}
}
public AudioDevice getSelectedAudioDevice() {
if (notSelfManaged(context)) {
return getAudioDeviceFallback();
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
return getAudioDeviceUpsideDownCake();
} else {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
return getAudioDeviceOreo();
} else {
throw new AssertionError(
"Trying to get selected audio device on unsupported version");
}
throw new AssertionError("Trying to get selected audio device on unsupported version");
}
}
@ -181,14 +176,12 @@ public class CallIntegration extends Connection {
setAudioDeviceFallback(audioDevice);
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
setAudioDeviceUpsideDownCake(audioDevice);
} else {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
setAudioDeviceOreo(audioDevice);
} else {
throw new AssertionError("Trying to set audio devices on unsupported version");
}
}
}
public void setAudioDeviceWhenAvailable(final AudioDevice audioDevice) {
final var available = getAudioDevices();