android: fix selecting the Bluetooth route
Samsung devices (of course) seem to stick with the earpiece if we first select Bluetooth but then set speaker to false. Reverse the order to make everyone happy. This only applies to the generic and legacy handlers.
This commit is contained in:
parent
6b716f8f56
commit
4d243f9b92
|
@ -198,11 +198,11 @@ class AudioDeviceHandlerGeneric implements
|
|||
|
||||
@Override
|
||||
public void setAudioRoute(String device) {
|
||||
// Turn bluetooth on / off
|
||||
setBluetoothAudioRoute(device.equals(AudioModeModule.DEVICE_BLUETOOTH));
|
||||
|
||||
// Turn speaker on / off
|
||||
audioManager.setSpeakerphoneOn(device.equals(AudioModeModule.DEVICE_SPEAKER));
|
||||
|
||||
// Turn bluetooth on / off
|
||||
setBluetoothAudioRoute(device.equals(AudioModeModule.DEVICE_BLUETOOTH));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -196,11 +196,11 @@ class AudioDeviceHandlerLegacy implements
|
|||
|
||||
@Override
|
||||
public void setAudioRoute(String device) {
|
||||
// Turn bluetooth on / off
|
||||
setBluetoothAudioRoute(device.equals(AudioModeModule.DEVICE_BLUETOOTH));
|
||||
|
||||
// Turn speaker on / off
|
||||
audioManager.setSpeakerphoneOn(device.equals(AudioModeModule.DEVICE_SPEAKER));
|
||||
|
||||
// Turn bluetooth on / off
|
||||
setBluetoothAudioRoute(device.equals(AudioModeModule.DEVICE_BLUETOOTH));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue