Merge "Revert onSurfaceRedrawNeeded behavior"

This commit is contained in:
Lucas Dupin
2018-09-25 16:11:42 +00:00
committed by Android (Google) Code Review

View File

@@ -256,12 +256,6 @@ public class ImageWallpaper extends WallpaperService {
Log.d(TAG, "onSurfaceRedrawNeeded");
}
super.onSurfaceRedrawNeeded(holder);
// At the end of this method we should have drawn into the surface.
// This means that the bitmap should be loaded synchronously if
// it was already unloaded.
if (mBackground == null) {
updateBitmap(mWallpaperManager.getBitmap(true /* hardware */));
}
mSurfaceRedrawNeeded = true;
drawFrame();
}