OSDN Git Service

Revive volume up/down long press in TV
authorJaewan Kim <jaewan@google.com>
Tue, 12 Jan 2016 05:45:42 +0000 (14:45 +0900)
committerJaewan Kim <jaewan@google.com>
Wed, 13 Jan 2016 04:55:46 +0000 (13:55 +0900)
commit765487f929f3d91ab3cd130b6b1d2008b25c4728
treeeb2bdc460160b5b276c0f04c6e889d533d1da4d9
parent76774af11097f860b95ff503de895ee3bb7724e0
Revive volume up/down long press in TV

PhoneWindowManager.interceptKeyBeforeQueuing isn't good place
to handle long press because rejecting a down event will not
synthesize further key repeat.

Move the logic to PhoneWindowManager.interceptKeyBeforeDispatching
instead.

This is the regression caused by following CL
001c59c Route volume keys directly to the audio system on TVs

Bug: 26268032
Change-Id: Ic8f6dfaec473c0d45ffa42475763622dc700e635
services/core/java/com/android/server/policy/PhoneWindowManager.java