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

Commit e7339d80 authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru
Browse files

resolved conflicts for merge of acb5f383 to jb-dev-plus-aosp

Change-Id: I79f0394b20a61dc7e6faabdb74c66277f71dfcb3
parents f9d5ee55 acb5f383
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -287,6 +287,13 @@ public class ImageWallpaper extends WallpaperService {
                updateWallpaperLocked();
            }

            if (mBackground == null) {
                // If we somehow got to this point after we have last flushed
                // the wallpaper, well we really need it to draw again.  So
                // seems like we need to reload it.  Ouch.
                updateWallpaperLocked();
            }

            SurfaceHolder sh = getSurfaceHolder();
            final Rect frame = sh.getSurfaceFrame();
            final int dw = frame.width();
@@ -308,13 +315,6 @@ public class ImageWallpaper extends WallpaperService {
            mLastXTranslation = xPixels;
            mLastYTranslation = yPixels;

            if (mBackground == null) {
                // If we somehow got to this point after we have last flushed
                // the wallpaper, well we really need it to draw again.  So
                // seems like we need to reload it.  Ouch.
                updateWallpaperLocked();
            }

            if (mIsHwAccelerated) {
                if (!drawWallpaperWithOpenGL(sh, availw, availh, xPixels, yPixels)) {
                    drawWallpaperWithCanvas(sh, availw, availh, xPixels, yPixels);