Merge "Don't post notification with lock held" into tm-qpr-dev

This commit is contained in:
TreeHugger Robot
2022-05-27 18:58:35 +00:00
committed by Android (Google) Code Review

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() {