Force audio route to speaker on tablets after ringing
This commit is contained in:
parent
40026e9bed
commit
f695c71bda
1 changed files with 7 additions and 2 deletions
|
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue