fix formating for previous commit
This commit is contained in:
parent
ed2e0ab73c
commit
538a714e29
|
@ -152,12 +152,10 @@ 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 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
|
return getAudioDevicesOreo();
|
||||||
} else {
|
} else {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
throw new AssertionError("Trying to get audio devices on unsupported version");
|
||||||
return getAudioDevicesOreo();
|
|
||||||
} else {
|
|
||||||
throw new AssertionError("Trying to get audio devices on unsupported version");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -166,13 +164,10 @@ public class CallIntegration extends Connection {
|
||||||
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 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
|
return getAudioDeviceOreo();
|
||||||
} else {
|
} else {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
throw new AssertionError("Trying to get selected audio device on unsupported version");
|
||||||
return getAudioDeviceOreo();
|
|
||||||
} else {
|
|
||||||
throw new AssertionError(
|
|
||||||
"Trying to get selected audio device on unsupported version");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -181,12 +176,10 @@ 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 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
|
setAudioDeviceOreo(audioDevice);
|
||||||
} else {
|
} else {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
throw new AssertionError("Trying to set audio devices on unsupported version");
|
||||||
setAudioDeviceOreo(audioDevice);
|
|
||||||
} else {
|
|
||||||
throw new AssertionError("Trying to set audio devices on unsupported version");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue