-
- Downloads
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
Showing
- packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/ForegroundCoordinator.java 46 additions, 35 deletions...ication/collection/coordinator/ForegroundCoordinator.java
- packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/ForegroundCoordinatorTest.java 96 additions, 4 deletions...ion/collection/coordinator/ForegroundCoordinatorTest.java
Loading
Please register or sign in to comment