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

Commit 4fcb6ec0 authored by Adrian Roos's avatar Adrian Roos
Browse files

ImageWallpaper: updateSurfaceSize when display size changes

Change-Id: Iaabd856faeb1215e8c945e900782bb1dd5a43f30
Fixes: 113105610
Test: set display cutout to hide, reboot phone, set cutout to default, verify wallpaper has no black bar
parent d6da4a14
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