Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ccdb3242 authored by Rob Carr's avatar Rob Carr Committed by Android (Google) Code Review
Browse files

Merge "Update wallpaper offset when changing target from null" into sc-dev

parents 0c1dc2fc d7e56f5b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -549,6 +549,9 @@ class WallpaperController {
        final WindowState prevWallpaperTarget = mWallpaperTarget;
        mWallpaperTarget = wallpaperTarget;

        if (prevWallpaperTarget == null && wallpaperTarget != null) {
            updateWallpaperOffsetLocked(mWallpaperTarget, false);
        }
        if (wallpaperTarget == null || prevWallpaperTarget == null) {
            return;
        }