diff options
author | Riddle Hsu <riddlehsu@google.com> | 2019-04-29 19:22:38 +0800 |
---|---|---|
committer | Riddle Hsu <riddlehsu@google.com> | 2019-05-15 15:18:26 +0800 |
commit | 5828b413b0720cdcb9d51b5ebb90cbf7d9eb7249 (patch) | |
tree | 2797a8cb44d6738c7d4c8337c842b761964e7850 /startop/scripts/lib/cmd_utils.py | |
parent | c3c30eefb2bb2c0cd1342583191db0d8c87bb17d (diff) |
Invoke setWindowStopped on the thread that created the view
The windows belong to a activity will be set to stopped state
when the activity is stopped. But the associated thread of
view root could be different from activity, that results the
inconsistent calling thread of surface callback, and maybe
some potential races.
Since the surface could be destroyed during traversal, also
add a check for callback notifySurfaceDestroyed to prevent
duplicated calls if the surface is released.
Bug: 130553315
Test: atest ViewRootSurfaceCallbackTest
Change-Id: Iea2cf8ff51118c0fa8c00a35c1d3e53c959ea754
Diffstat (limited to 'startop/scripts/lib/cmd_utils.py')
0 files changed, 0 insertions, 0 deletions