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: I9bb973c4e94ed7465e7bef459b122b49c2022c4e
This commit is contained in:
TreeHugger Robot
2021-07-15 09:09:19 +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));
}
});
}