Merge "(Take two) Do not hold lock when calling into NotificationManager" into sc-dev am: ac77fab34c am: b4dbaaf200

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15284691

Change-Id: I422795b6a13ac5c5f7d224cd39f434e52bd1463a
This commit is contained in:
TreeHugger Robot
2021-07-15 09:33:01 +00:00
committed by Automerger Merge Worker

View File

@@ -15019,10 +15019,11 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
}
if (active) {
if (shouldSendNotification) {
sendNetworkLoggingNotification();
mHandler.post(() -> sendNetworkLoggingNotification());
}
} else {
mInjector.getNotificationManager().cancel(SystemMessage.NOTE_NETWORK_LOGGING);
mHandler.post(() -> mInjector.getNotificationManager().cancel(
SystemMessage.NOTE_NETWORK_LOGGING));
}
});
}