fix formating for previous commit
This commit is contained in:
parent
ed2e0ab73c
commit
538a714e29
|
@ -152,27 +152,22 @@ public class CallIntegration extends Connection {
|
||||||
return getAudioDevicesFallback();
|
return getAudioDevicesFallback();
|
||||||
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
|
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
|
||||||
return getAudioDevicesUpsideDownCake();
|
return getAudioDevicesUpsideDownCake();
|
||||||
} else {
|
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
|
||||||
return getAudioDevicesOreo();
|
return getAudioDevicesOreo();
|
||||||
} else {
|
} else {
|
||||||
throw new AssertionError("Trying to get audio devices on unsupported version");
|
throw new AssertionError("Trying to get audio devices on unsupported version");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public AudioDevice getSelectedAudioDevice() {
|
public AudioDevice getSelectedAudioDevice() {
|
||||||
if (notSelfManaged(context)) {
|
if (notSelfManaged(context)) {
|
||||||
return getAudioDeviceFallback();
|
return getAudioDeviceFallback();
|
||||||
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
|
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
|
||||||
return getAudioDeviceUpsideDownCake();
|
return getAudioDeviceUpsideDownCake();
|
||||||
} else {
|
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
|
||||||
return getAudioDeviceOreo();
|
return getAudioDeviceOreo();
|
||||||
} else {
|
} else {
|
||||||
throw new AssertionError(
|
throw new AssertionError("Trying to get selected audio device on unsupported version");
|
||||||
"Trying to get selected audio device on unsupported version");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -181,14 +176,12 @@ public class CallIntegration extends Connection {
|
||||||
setAudioDeviceFallback(audioDevice);
|
setAudioDeviceFallback(audioDevice);
|
||||||
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
|
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
|
||||||
setAudioDeviceUpsideDownCake(audioDevice);
|
setAudioDeviceUpsideDownCake(audioDevice);
|
||||||
} else {
|
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
|
||||||
setAudioDeviceOreo(audioDevice);
|
setAudioDeviceOreo(audioDevice);
|
||||||
} else {
|
} else {
|
||||||
throw new AssertionError("Trying to set audio devices on unsupported version");
|
throw new AssertionError("Trying to set audio devices on unsupported version");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public void setAudioDeviceWhenAvailable(final AudioDevice audioDevice) {
|
public void setAudioDeviceWhenAvailable(final AudioDevice audioDevice) {
|
||||||
final var available = getAudioDevices();
|
final var available = getAudioDevices();
|
||||||
|
|
Loading…
Reference in a new issue