Skip to content
Snippets Groups Projects
Commit 364a0bd6 authored by Rayan Osseiran's avatar Rayan Osseiran Committed by Adrien Béraud
Browse files

audio: prefer headphones if plugged in for video calls

Video calls would start with speakers on if headphones are plugged in

Change-Id: I24727e453b01342a32b76940260e79e48e5079ed
parent e2112d9b
No related branches found
No related tags found
No related merge requests found
......@@ -258,7 +258,7 @@ public class HardwareServiceImpl extends HardwareService implements AudioManager
// prioritize bluetooth by checking for bluetooth device first
if (mBluetoothWrapper != null && mBluetoothWrapper.canBluetooth() && mBluetoothWrapper.isBTHeadsetConnected()) {
routeToBTHeadset();
} else if (mHasSpeakerPhone && mShouldSpeakerphone) {
} else if (!mAudioManager.isWiredHeadsetOn() && mHasSpeakerPhone && mShouldSpeakerphone) {
routeToSpeaker();
} else {
resetAudio();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment