summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorCraig Mautner <cmautner@google.com>2012-10-01 09:39:43 -0700
committerCraig Mautner <cmautner@google.com>2012-10-01 09:39:43 -0700
commitfb729c7b4420eacbc65a958beb53511ff59ba3e6 (patch)
treeca5ca603bf6d3af2205412c59b433eee066a0681 /packages
parenta995b6e37f20b3e7eebfb37d8868c1bc14906204 (diff)
downloadframeworks_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.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) {