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

Commit 21bc5496 authored by Jack He's avatar Jack He Committed by Automerger Merge Worker
Browse files

Merge "clearCommunicationDevice only when necessary" into tm-dev am: 95741819 am: f6d50225

parents 3eeb1ad4 f6d50225
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1654,8 +1654,11 @@ public class CallAudioRouteStateMachine extends StateMachine {
                speakerOn = true;
            }
        } else {
            AudioDeviceInfo curDevice = mAudioManager.getCommunicationDevice();
            if (curDevice != null && curDevice.getType() == AudioDeviceInfo.TYPE_BUILTIN_SPEAKER) {
                mAudioManager.clearCommunicationDevice();
            }
        }
        mStatusBarNotifier.notifySpeakerphone(speakerOn);
    }