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

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

Change-Id: I25318bd0dc0693f02cc4fe2a74a5214aec74475d
This commit is contained in:
TreeHugger Robot
2021-07-16 01:53:24 +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));
}
});
}