diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2012-05-04 19:16:35 -0700 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2012-05-04 19:18:00 -0700 |
commit | e7339d804dc91427330abe192ebbb6bcd56b822c (patch) | |
tree | 336026cd882d9d12b7ae80a3d7a7e3c6e3dbcbea /packages/SystemUI/src/com/android/systemui/ImageWallpaper.java | |
parent | f9d5ee556a7cc588b19ca3ba92931bd562699f1c (diff) | |
parent | acb5f383eaaf6c8251dde9cb12909a1a9ea0d652 (diff) | |
download | frameworks_base-e7339d804dc91427330abe192ebbb6bcd56b822c.zip frameworks_base-e7339d804dc91427330abe192ebbb6bcd56b822c.tar.gz frameworks_base-e7339d804dc91427330abe192ebbb6bcd56b822c.tar.bz2 |
resolved conflicts for merge of acb5f383 to jb-dev-plus-aosp
Change-Id: I79f0394b20a61dc7e6faabdb74c66277f71dfcb3
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/ImageWallpaper.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/ImageWallpaper.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java index c60c806..2c94c2b 100644 --- a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java +++ b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java @@ -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); |