mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-24 23:28:10 +00:00
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,7 +123,11 @@ public class AndroidAudioManager {
|
|||
if (mContext.getResources().getBoolean(R.bool.isTablet)) {
|
||||
routeAudioToSpeaker();
|
||||
} else {
|
||||
routeAudioToEarPiece();
|
||||
// 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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue