summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorJaewan Kim <jaewan@google.com>2017-02-24 18:33:04 +0900
committerJaewan Kim <jaewan@google.com>2017-02-28 02:51:47 +0000
commit98003d36ddf10d1bf92d2a172da44bdd83512538 (patch)
treec4acd99635751cb8ffe82f03ac8e4838db28c549 /tools/aapt2/diff/Diff.cpp
parent34a6663d089d4ec35a80e70cac05f82010116f25 (diff)
Send long-press of KEYCODE_HEADSETHOOK to the media key listener
For the key events with the code KEYCODE_HEADSETHOOK, the MediaSessionService always starts the voice input for long-presses regardless of the media key listener, and only short-presses can be sent to the media key listener. This CL sends all media key events to the media key listener first if the listener is set. If the key event isn't consumed, short-presses will be sent to the media session and long-presses will start the voice input. Bug: 35348856 Test: Manual test (Install the OnMediaKeyListener test app and confirm that the app can consume the media key long-press) Change-Id: I82f8e5f355efe16867e6f4345c46470c690e1f80
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions