mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
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;
|
||||
// You may need to call galaxys audio hack after this method
|
||||
if (!BluetoothManager.getInstance().isBluetoothHeadsetAvailable()) {
|
||||
Log.d("Stopped ringing, routing back to earpiece");
|
||||
routeAudioToReceiver();
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue