commit | 5db037a6a19f7e1d5e867a35a3970c1ed0e244fd | [log] [tgz] |
---|---|---|
author | Ned Burns <pixel@google.com> | Wed Jan 22 16:31:00 2020 -0500 |
committer | Ned Burns <pixel@google.com> | Thu Jan 23 12:47:58 2020 -0500 |
tree | e614c2fb2fd2ac4e0eea0b8f109dafe09a8e5846 | |
parent | 457318ef6dfa1b3fa8654eb8881387fce7e3e3fa [diff] |
Make ForegroundCoordinator single-threaded The appops callback is frequently called from a background thread, which was causing a crash when calling mNotifPipeline.getActiveNotifs(). Switched the class over to being exclusively single-threaded; it didn't need to support multiple threads and this simplifies things. Test: atest SystemUITests:ForegroundCoordinatorTest Change-Id: I4f010c16fa3f2467a5aaa05ef72c0278396a30e0