diff options
author | arthurhung <arthurhung@google.com> | 2020-12-10 00:21:21 +0800 |
---|---|---|
committer | arthurhung <arthurhung@google.com> | 2020-12-10 16:41:27 +0800 |
commit | 2243b671223060391e6f48680ad9a058bc3e0bb9 (patch) | |
tree | e2114b5a579cb87cacebec237d723aeece4ac2b9 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 42991d36ca1c6be1a989bb84168585352f591094 (diff) |
Prevent accidentally click on RecyclerView
Currently, inputflinger would send an ACTION_POINTER_UP event with
AKEY_EVENT_FLAG_CANCELED when we have at least 2 pointers down and
one becomes the accidental touch.
In ViewGroup, if we have FLAG_SPLIT_MOTION_EVENTS, it may split a
multi touch event into some single touch events to the target childs,
so we should also check the cancel flag in order to prevent it trigger
the accidental click on the child view.
Bug: 161655782
Test: enable twoshay, test accidental touch on RecyclerView
Change-Id: Iba864361ca3361e4a720dbe0eb0b39d42a6dc5b2
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions