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

Commit 95741819 authored by Jack He's avatar Jack He Committed by Android (Google) Code Review
Browse files

Merge "clearCommunicationDevice only when necessary" into tm-dev

parents fe3a6397 5e44e565
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);
    }