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

Commit 009ab7e4 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "platform/framework/base: Fix Half Blank screen issue in Wallpaper"

parents f4238e7e ecb0e88c
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -120,6 +120,7 @@ public class ImageWallpaper extends WallpaperService {
        boolean mVisible = true;
        boolean mRedrawNeeded;
        boolean mOffsetsChanged;
        boolean mSurfaceChanged;
        int mLastXTranslation;
        int mLastYTranslation;

@@ -300,7 +301,7 @@ public class ImageWallpaper extends WallpaperService {
            }

            super.onSurfaceChanged(holder, format, width, height);

            mSurfaceChanged = true;
            drawFrame();
        }

@@ -342,9 +343,10 @@ 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 || mSurfaceChanged ) {
                // Update surface size (if necessary)
                updateSurfaceSize(getSurfaceHolder());
                mSurfaceChanged = false;
            }
            SurfaceHolder sh = getSurfaceHolder();
            final Rect frame = sh.getSurfaceFrame();