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)) {
|
if (mContext.getResources().getBoolean(R.bool.isTablet)) {
|
||||||
routeAudioToSpeaker();
|
routeAudioToSpeaker();
|
||||||
} else {
|
} else {
|
||||||
|
// Only force earpiece audio route for incoming audio calls,
|
||||||
|
// outgoing calls may have manually enabled speaker
|
||||||
|
if (call.getDir() == Call.Dir.Incoming) {
|
||||||
routeAudioToEarPiece();
|
routeAudioToEarPiece();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// Only register this one when a call is active
|
// Only register this one when a call is active
|
||||||
enableHeadsetReceiver();
|
enableHeadsetReceiver();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue