Don't post notification with lock held

Fixes: 233034364
Test: CtsDevicePolicyTestCases
Change-Id: I3b7a6b0306f45eb57729bb483333dd34785acca4
This commit is contained in:
Julia Reynolds
2022-05-27 09:06:45 -04:00
parent f2c4edde47
commit a97f416015

View File

@@ -12517,8 +12517,8 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
.setContentIntent(locationSettingsIntent)
.setAutoCancel(true)
.build();
mInjector.getNotificationManager().notify(SystemMessage.NOTE_LOCATION_CHANGED,
notification);
mHandler.post(() -> mInjector.getNotificationManager().notify(
SystemMessage.NOTE_LOCATION_CHANGED, notification));
}
private String getLocationChangedTitle() {