summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorShu Chen <shuchen@google.com>2020-10-22 12:26:52 +0800
committerShu Chen <shuchen@google.com>2020-10-23 05:31:30 +0000
commit62f51e67225f8b430121e5f31d7f37be90dc95b5 (patch)
tree82bd05c6ec703d39e28b5c435c4263ded16a160b /tools/aapt2/java/JavaClassGenerator.cpp
parentce7806da32287e9eb6c3c8f7d31edad2891c1d0c (diff)
Makes the multi-touch prevention only works for editable TextView.
The original logic of preventing the multi-touch issue for the edtiable text view was introduced by ag/10930920. Turns out the non-editable text views are affected. The root cause of the issue is that: - the ACTION_DOWN/ACTION_UP events, as well as ACTION_PONITER_DOWN / ACTION_POINTER_UP, could be generated by different fingers, - and View#onTouchEvent() gets muted when isFromPrimePointer() == false, - so that no gesture is generated, e.g. click, long press, etc. Note that View#onTouchEvent() is necessary to be muted to prevent long press on text or scrolling while dragging the insertion handle view. Bug: 169288151 Change-Id: Ia763e94be727ad23bb13839f146293f1579d03ec (cherry picked from commit 265096d9dac9cdfdce11f24f1b840b3139ea6fc0)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions