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,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) {
|
||||
|
|
Loading…
Reference in a new issue