OSDN Git Service

resolved conflicts for merge of acb5f383 to jb-dev-plus-aosp
authorJean-Baptiste Queru <jbq@google.com>
Sat, 5 May 2012 02:16:35 +0000 (19:16 -0700)
committerJean-Baptiste Queru <jbq@google.com>
Sat, 5 May 2012 02:18:00 +0000 (19:18 -0700)
Change-Id: I79f0394b20a61dc7e6faabdb74c66277f71dfcb3

packages/SystemUI/src/com/android/systemui/ImageWallpaper.java

index c60c806..2c94c2b 100644 (file)
@@ -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);