Commit 7082516
Jeff Brown
Ensure pointer location view is attached to the policy thread.
Previously we created the PointerLocationView on whatever thread
happened to trigger the call to updateSettings(). There was
also some messiness around having to add or remove the view
while not holding mLock.
Now, just post the work to the policy handler.
This also makes it possible for us to use invalidate() instead
of postInvalidate() in PointerLocationView, which is more efficient.
Change-Id: I0646d7aeecffdc22f6ac56ae3ef951e7a12e2b931 parent d19ff5f commit 7082516
2 files changed
Lines changed: 309 additions & 295 deletions
File tree
- core/java/com/android/internal/widget
- policy/src/com/android/internal/policy/impl
0 commit comments