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,10 +983,15 @@ public class LinphoneManager implements LinphoneCoreListener {
isRinging = false;
// You may need to call galaxys audio hack after this method
if (!BluetoothManager.getInstance().isBluetoothHeadsetAvailable()) {
if (mServiceContext.getResources().getBoolean(R.bool.isTablet)) {
Log.d("Stopped ringing, routing back to speaker");
routeAudioToSpeaker();
} else {
Log.d("Stopped ringing, routing back to earpiece");
routeAudioToReceiver();
}
}
}
public static String extractADisplayName(Resources r, LinphoneAddress address) {