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

Commit fb729c7b authored by Craig Mautner's avatar Craig Mautner
Browse files

Redraw static wallpapers when a redraw is needed.

Bug: 7242944
Change-Id: I913e3486de77468e73da79b4d83be3cf4f1547dd
parent a995b6e3
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -261,6 +261,19 @@ public class ImageWallpaper extends WallpaperService {
            }
        }

        @Override
        public void onSurfaceRedrawNeeded(SurfaceHolder holder) {
            if (DEBUG) {
                Log.d(TAG, "onSurfaceRedrawNeeded:");
            }
            super.onSurfaceRedrawNeeded(holder);

            synchronized (mLock) {
                mRedrawNeeded = true;
                drawFrameLocked();
            }
        }

        void drawFrameLocked() {
            if (!mVisible) {
                if (DEBUG) {