summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.cpp
diff options
context:
space:
mode:
author Michael Wright <michaelwr@google.com> 2018-09-04 17:16:00 +0100
committer Siarhei Vishniakou <svv@google.com> 2021-08-12 00:11:28 +0000
commit93b3c57a135d96045dae5f5ba826090deb31bee1 (patch)
treeb6f2ea9194dfe19364e6722ef8af0b40688c7955 /libs/input/SpriteController.cpp
parenteb3c80bfdd33870d99576ff282bd712f7f7e4cf0 (diff)
Make PointerLocationView more resilient.
Right now it crashes if we miss an up event since the active pointer won't get reset. We can't just clear this in onDetachedFromWindow because of how it gets drawn in system_server, so instead we just check before using the active pointer. Bug: 109779280 Test: put settings into split screen, frequently enable / disable Pointer Location while tapping in another app window. See that it doesn't crash. Change-Id: If2b1f3157574c962b24115b0ecf0a27feec8e84c
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions