diff options
author | Siarhei Vishniakou <svv@google.com> | 2020-10-19 13:38:31 -0500 |
---|---|---|
committer | Siarhei Vishniakou <svv@google.com> | 2020-10-27 17:12:17 +0000 |
commit | 3d34eeb8d0db6322c8871f22cb401c26fa2c1c27 (patch) | |
tree | 6dacda2e82e5419d3e6099d007b573e062ccb0df /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | d248997c5743dae36d2777cdb8ef956163e551b4 (diff) |
Remove batched consumption from onStop
This patch reverts the earlier patch, ag/11959351, because the correct
solution is aosp/1459888.
When batched input is available, the Choreographer::CALLBACK_INPUT is
scheduled by ViewRootImpl. The callback always runs, even if onStop has
been called. So the earlier patch was invalid.
In practice, what happened was that the batched input was not getting
consumed after FOCUS event was received in the receiver. This was fixed
in aosp/1459888.
The consumption mechanism is complex, so I added a doc explaining how it
works, for future readers.
The newly added test, IncompleteMotionTest, ensures that this regression
does not happen again.
Test: atest IncompleteMotionTest
Bug: 160561987
Change-Id: Ic0a453ebbce1f847de8e9cb87bdffdaf72c12637
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions