Merge "Notify FSC about app ops in main thread" into qt-dev

This commit is contained in:
Fabian Kozynski
2019-04-24 16:01:10 +00:00
committed by Android (Google) Code Review

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);
});
}