Notify FSC about app ops in main thread

Test: build
Bug: 131188506
Change-Id: I7c73344d65ac0322c32ad13e6f81ad52c7b629d7
This commit is contained in:
Fabian Kozynski
2019-04-24 09:25:14 -04:00
parent 18184f9c86
commit 7284e4f5b7

View File

@@ -596,8 +596,8 @@ public class StatusBar extends SystemUI implements DemoMode,
@Override
public void onActiveStateChanged(int code, int uid, String packageName, boolean active) {
mForegroundServiceController.onAppOpChanged(code, uid, packageName, active);
Dependency.get(MAIN_HANDLER).post(() -> {
mForegroundServiceController.onAppOpChanged(code, uid, packageName, active);
mNotificationListController.updateNotificationsForAppOp(code, uid, packageName, active);
});
}