Merge "Fix WallpaperManagerInternal NPE" into udc-dev

This commit is contained in:
Aurélien Pomini
2023-05-05 17:13:40 +00:00
committed by Android (Google) Code Review

View File

@@ -3555,7 +3555,10 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
mRootWindowContainer.forAllDisplays(displayContent -> {
mKeyguardController.keyguardGoingAway(displayContent.getDisplayId(), flags);
});
getWallpaperManagerInternal().onKeyguardGoingAway();
WallpaperManagerInternal wallpaperManagerInternal = getWallpaperManagerInternal();
if (wallpaperManagerInternal != null) {
wallpaperManagerInternal.onKeyguardGoingAway();
}
}
} finally {
Binder.restoreCallingIdentity(token);