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

Commit a29385e5 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "ImageWallpaper: updateSurfaceSize when display size changes"

parents 21404d31 4fcb6ec0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -274,7 +274,9 @@ public class ImageWallpaper extends WallpaperService {
                // Sometimes a wallpaper is not large enough to cover the screen in one dimension.
                // Call updateSurfaceSize -- it will only actually do the update if the dimensions
                // should change
                if (newRotation != mLastRotation) {
                if (newRotation != mLastRotation
                        || mDisplayWidthAtLastSurfaceSizeUpdate != displayInfo.logicalWidth
                        || mDisplayHeightAtLastSurfaceSizeUpdate != displayInfo.logicalHeight) {
                    // Update surface size (if necessary)
                    if (!updateSurfaceSize(getSurfaceHolder(), displayInfo, true /* forDraw */)) {
                        return; // had to reload wallpaper, will retry later