Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95084e9f authored by Nivedita Sarkar's avatar Nivedita Sarkar
Browse files

IMS-VT: Set speaker phone to true only if bluetooth or headset is not connected

Change-Id: I29fbbc3640453e5713193b815e64a3355e26be04
CRs-Fixed: 755377
parent b71a0810
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -649,7 +649,9 @@ public final class CallsManager extends Call.ListenerBase {
            // We do not update the UI until we get confirmation of the answer() through
            // {@link #markCallAsActive}.
            call.answer(videoState);
            if (VideoProfile.VideoState.isVideo(videoState)) {
            if (VideoProfile.VideoState.isVideo(videoState) &&
                !mWiredHeadsetManager.isPluggedIn() &&
                !mCallAudioManager.isBluetoothDeviceAvailable()) {
                call.setStartWithSpeakerphoneOn(true);
            }
        }