Merge "Redraw static wallpapers when a redraw is needed." into jb-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ba30ac6aa7
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user