Merge "Force the wallpaper to reload when dimensions change" into klp-dev

This commit is contained in:
Michael Wright
2013-10-15 23:40:14 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 0 deletions

View File

@ -280,6 +280,7 @@ public class WallpaperManager {
synchronized (this) { synchronized (this) {
mWallpaper = null; mWallpaper = null;
mDefaultWallpaper = null; mDefaultWallpaper = null;
mHandler.removeMessages(MSG_CLEAR_WALLPAPER);
} }
} }

View File

@ -326,6 +326,7 @@ public class ImageWallpaper extends WallpaperService {
((mBackground == null) ? 0 : mBackground.getHeight()) + ", " + ((mBackground == null) ? 0 : mBackground.getHeight()) + ", " +
dw + ", " + dh); dw + ", " + dh);
} }
mWallpaperManager.forgetLoadedWallpaper();
updateWallpaperLocked(); updateWallpaperLocked();
if (mBackground == null) { if (mBackground == null) {
if (DEBUG) { if (DEBUG) {