diff options
author | Miranda Kephart <mkephart@google.com> | 2021-03-31 13:49:28 -0400 |
---|---|---|
committer | Miranda Kephart <mkephart@google.com> | 2021-03-31 17:55:43 +0000 |
commit | d41d038515bfc6ea8e9772c4e2cf4d10cc689a72 (patch) | |
tree | af556b9562d6a6187c0e0a663cfe5040004bd255 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 40b4495f8eeb29150bee968c58634cc70c4a2460 (diff) |
Don't send long-press event if KEYCODE_UNKNOWN
Gates sending a long-press event on the keycode not being unknown.
This brings the behavior into line with the other times events are
sent from KeyButtonView and fixes a bug where long-pressing the
recents button in 3-button mode broke screenshots. When this
happens we send an ACTION_DOWN event, but no ACTION_UP event,
which prevents the key combination manager from correctly
recognizing keychords.
Bug: 181178545
Test: manual; repro = long-press the recents button in 3-button
mode, then attempt to take a screenshot with power+vol_down.
Change-Id: I26d232067befc3aca04c74e4ef8f4ad4ac629934
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions