Do not call notification manager with lock held

Test: None
Change-Id: I3362ba3de2b0a827d09ac9685f14221c32c58403
This commit is contained in:
Rubin Xu
2023-02-02 16:00:03 +00:00
parent d170d07bc0
commit 22da178714

View File

@@ -18435,9 +18435,9 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
.addExtras(extras)
.build();
mInjector.getNotificationManager().notifyAsUser(
mHandler.post(() -> mInjector.getNotificationManager().notifyAsUser(
null, SystemMessage.NOTE_PERSONAL_APPS_SUSPENDED, notification,
UserHandle.of(getProfileParentId(profileUserId)));
UserHandle.of(getProfileParentId(profileUserId))));
}
private String getPersonalAppSuspensionButtonText() {