diff options
author | Craig Mautner <cmautner@google.com> | 2012-10-01 14:20:09 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-10-01 14:20:09 -0700 |
commit | ba30ac6aa7bc4df030292c62c9f38fac0a65b79e (patch) | |
tree | d6ed6245e1778fad1f27bea7e3904e0bb11fd053 /packages/SystemUI/src | |
parent | 48315436eece69f4d047c2b14ac63e62f757b88c (diff) | |
parent | fb729c7b4420eacbc65a958beb53511ff59ba3e6 (diff) | |
download | frameworks_base-ba30ac6aa7bc4df030292c62c9f38fac0a65b79e.zip frameworks_base-ba30ac6aa7bc4df030292c62c9f38fac0a65b79e.tar.gz frameworks_base-ba30ac6aa7bc4df030292c62c9f38fac0a65b79e.tar.bz2 |
Merge "Redraw static wallpapers when a redraw is needed." into jb-mr1-dev
Diffstat (limited to 'packages/SystemUI/src')
-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) { |