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

Commit c29e70ef authored by Lucas Dupin's avatar Lucas Dupin Committed by android-build-merger
Browse files

Merge "Fix default wallpaper transition issue" into qt-qpr1-dev

am: 8de3b785

Change-Id: I730392200e589e97192e1612ce7517ba2d6c93e1
parents da96cb40 8de3b785
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -111,7 +111,12 @@ public class ImageWallpaperRenderer implements GLWallpaperRenderer,
            mBitmap = mWallpaperManager.getBitmap();
            mWallpaperManager.forgetLoadedWallpaper();
            if (mBitmap != null) {
                mSurfaceSize.set(0, 0, mBitmap.getWidth(), mBitmap.getHeight());
                float scale = (float) mScissor.height() / mBitmap.getHeight();
                int surfaceHeight = Math.max(mScissor.height(), mBitmap.getHeight());
                int surfaceWidth = scale > 1f
                        ? Math.round(mBitmap.getWidth() * scale)
                        : mBitmap.getWidth();
                mSurfaceSize.set(0, 0, surfaceWidth, surfaceHeight);
            }
        }
        return mBitmap != null;