summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorMichael Wright <michaelwr@google.com>2013-10-15 12:49:44 -0700
committerMichael Wright <michaelwr@google.com>2013-10-15 13:03:44 -0700
commitb9fca9997100f209e98f0559c54c875b9e661e9f (patch)
tree85dee2175b13b338712a6b6f543128dd36b2f008 /packages
parent1680cfd803d6a435ce4c809075d052da2723ac07 (diff)
downloadframeworks_base-b9fca9997100f209e98f0559c54c875b9e661e9f.zip
frameworks_base-b9fca9997100f209e98f0559c54c875b9e661e9f.tar.gz
frameworks_base-b9fca9997100f209e98f0559c54c875b9e661e9f.tar.bz2
Force the wallpaper to reload when dimensions change
Currently it's possible for the home application to suggest new wallpaper dimensions and the WallpaperService to request the bitmap between when the new dimensions have been propagated and the old bitmap has been forgotten. This leads to the WallpaperService drawing a Bitmap with the old dimensions into a Surface with the new dimensions. By forcing the WallpaperManager to forget the old Bitmap immediately before we reload it, we can ensure that we always have a Bitmap of the correct size. Bug: 10853302 Change-Id: I298ac5f3f8bcde54eeb1e45d21bf2ba3cbb618c9
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/ImageWallpaper.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java
index 6fa863d..4b0c2cb 100644
--- a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java
+++ b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java
@@ -326,6 +326,7 @@ public class ImageWallpaper extends WallpaperService {
((mBackground == null) ? 0 : mBackground.getHeight()) + ", " +
dw + ", " + dh);
}
+ mWallpaperManager.forgetLoadedWallpaper();
updateWallpaperLocked();
if (mBackground == null) {
if (DEBUG) {