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

Commit 37659eed authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents 63a41f4e ba18d8ed
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() {