* commit 'b6f60405f12c8a4005e6b06c15943808a11b5bac': Redraw static wallpapers when a redraw is needed.
This commit is contained in:
@@ -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() {
|
void drawFrameLocked() {
|
||||||
if (!mVisible) {
|
if (!mVisible) {
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
|
|||||||
Reference in New Issue
Block a user