diff options
author | Craig Mautner <cmautner@google.com> | 2012-10-01 09:39:43 -0700 |
---|---|---|
committer | Craig Mautner <cmautner@google.com> | 2012-10-01 09:39:43 -0700 |
commit | fb729c7b4420eacbc65a958beb53511ff59ba3e6 (patch) | |
tree | ca5ca603bf6d3af2205412c59b433eee066a0681 /packages | |
parent | a995b6e37f20b3e7eebfb37d8868c1bc14906204 (diff) | |
download | frameworks_base-fb729c7b4420eacbc65a958beb53511ff59ba3e6.zip frameworks_base-fb729c7b4420eacbc65a958beb53511ff59ba3e6.tar.gz frameworks_base-fb729c7b4420eacbc65a958beb53511ff59ba3e6.tar.bz2 |
Redraw static wallpapers when a redraw is needed.
Bug: 7242944
Change-Id: I913e3486de77468e73da79b4d83be3cf4f1547dd
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/ImageWallpaper.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java index 0671e44..a98c4dc 100644 --- a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java +++ b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java @@ -261,6 +261,19 @@ public class ImageWallpaper extends WallpaperService { } } + @Override + public void onSurfaceRedrawNeeded(SurfaceHolder holder) { + if (DEBUG) { + Log.d(TAG, "onSurfaceRedrawNeeded:"); + } + super.onSurfaceRedrawNeeded(holder); + + synchronized (mLock) { + mRedrawNeeded = true; + drawFrameLocked(); + } + } + void drawFrameLocked() { if (!mVisible) { if (DEBUG) { |