summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorPhil Weaver <pweaver@google.com>2016-02-12 12:05:42 -0800
committerPhil Weaver <pweaver@google.com>2016-02-17 15:02:35 -0800
commite7b198353c62b00718da2bc04cb1e5efb0b57da5 (patch)
tree9a2dee785008c0b15c7850062766adf11424c835 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentf58179a24b4de90d0d1a5601530f7c19a57405f6 (diff)
Protect MotionEvent stream when a11y changes.
I found this hole while looking for a solution to a bug when magnification was enabled when TalkBack was running. I believe what was happening was that enabling/disabling magnification resets the AccessibilityInputFilter. The filter batches MotionEvents for processing with a choreographer, but the disable/enable cycle when magnification gets enabled could disrupt the event stream. This change flushes the batched events before objects using them are disabled. I've tried a variety of things, but I'm not able to reproduce the bug on NYC using the same procedure. I suspect that either the timing of the events is different, or the newer gesture detection in TalkBack is protecting it somehow. The hole remains, though, and could create invalid streams of MotionEvents without this fix. Bug: 26613222 Change-Id: Ie9f3da459929397596e0a80a61d5c7f191001ee8
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions