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

Commit 4c32e347 authored by Jaewan Kim's avatar Jaewan Kim Committed by android-build-merger
Browse files

Merge "Launch voice assistant by the KEYCODE_MEDIA_PLAY_PAUSE" into oc-dev

am: 37659eed

Change-Id: I454151eb9e14809a2cda0b2a3f1e3718caf09ac3
parents 4c65ff3d 37659eed
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1505,7 +1505,8 @@ public class MediaSessionService extends SystemService implements Monitor {
        }

        private boolean isVoiceKey(int keyCode) {
            return keyCode == KeyEvent.KEYCODE_HEADSETHOOK;
            return keyCode == KeyEvent.KEYCODE_HEADSETHOOK
                    || keyCode == KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE;
        }

        private boolean isUserSetupComplete() {