Fixed outgoing call speaker manually selected being switched back to earpiece when call is accepted
This commit is contained in:
parent
11b223c0dc
commit
e711e0750d
1 changed files with 5 additions and 1 deletions
|
@ -123,9 +123,13 @@ public class AndroidAudioManager {
|
|||
if (mContext.getResources().getBoolean(R.bool.isTablet)) {
|
||||
routeAudioToSpeaker();
|
||||
} else {
|
||||
// Only force earpiece audio route for incoming audio calls,
|
||||
// outgoing calls may have manually enabled speaker
|
||||
if (call.getDir() == Call.Dir.Incoming) {
|
||||
routeAudioToEarPiece();
|
||||
}
|
||||
}
|
||||
}
|
||||
// Only register this one when a call is active
|
||||
enableHeadsetReceiver();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue