summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src
diff options
context:
space:
mode:
authorCraig Mautner <cmautner@google.com>2012-10-01 14:20:09 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-10-01 14:20:09 -0700
commitba30ac6aa7bc4df030292c62c9f38fac0a65b79e (patch)
treed6ed6245e1778fad1f27bea7e3904e0bb11fd053 /packages/SystemUI/src
parent48315436eece69f4d047c2b14ac63e62f757b88c (diff)
parentfb729c7b4420eacbc65a958beb53511ff59ba3e6 (diff)
downloadframeworks_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.java13
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) {