Force audio route to speaker on tablets after ringing

This commit is contained in:
Sylvain Berfini 2015-03-20 13:57:55 +01:00
parent 40026e9bed
commit f695c71bda

View file

@ -983,8 +983,13 @@ public class LinphoneManager implements LinphoneCoreListener {
isRinging = false; isRinging = false;
// You may need to call galaxys audio hack after this method // You may need to call galaxys audio hack after this method
if (!BluetoothManager.getInstance().isBluetoothHeadsetAvailable()) { if (!BluetoothManager.getInstance().isBluetoothHeadsetAvailable()) {
Log.d("Stopped ringing, routing back to earpiece"); if (mServiceContext.getResources().getBoolean(R.bool.isTablet)) {
routeAudioToReceiver(); Log.d("Stopped ringing, routing back to speaker");
routeAudioToSpeaker();
} else {
Log.d("Stopped ringing, routing back to earpiece");
routeAudioToReceiver();
}
} }
} }