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

Commit f6d50225 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

parents 25972b14 95741819
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);
    }