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

Commit 233cb916 authored by Evan Rosky's avatar Evan Rosky Committed by Android (Google) Code Review
Browse files

Merge "Ensure wallpaper "relayout" when first created" into main

parents 5bd86ca7 fea48c68
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1249,7 +1249,7 @@ public abstract class WallpaperService extends Service {
            final boolean typeChanged = mType != mSurfaceHolder.getRequestedType();
            final boolean flagsChanged = mCurWindowFlags != mWindowFlags ||
                    mCurWindowPrivateFlags != mWindowPrivateFlags;
            final boolean reportDraw = mAlwaysSeqId ? seqId > mSeqId : false;
            boolean reportDraw = mAlwaysSeqId ? seqId > mSeqId : false;
            redrawNeeded = redrawNeeded || reportDraw;
            if (forceRelayout || creating || surfaceCreating || formatChanged || sizeChanged
                    || typeChanged || flagsChanged || redrawNeeded
@@ -1317,6 +1317,11 @@ public abstract class WallpaperService extends Service {
                            Log.w(TAG, "Failed to add window while updating wallpaper surface.");
                            return;
                        }
                        if (mAlwaysSeqId) {
                            seqId = addRes.syncSeqId;
                            reportDraw = reportDraw || seqId > mSeqId;
                            redrawNeeded = redrawNeeded || reportDraw;
                        }
                        mSession.setShouldZoomOutWallpaper(mWindow, shouldZoomOutWallpaper());
                        mCreated = true;