Merge "Return colors of areas even if they are not in current page" into sc-dev am: 1e70989c61

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14827878

Change-Id: Ie6eb7360b1bb36e5b2116edf8924bfd85a4cac59
This commit is contained in:
Jay Aliomer
2021-06-07 19:51:10 +00:00
committed by Automerger Merge Worker

View File

@@ -1764,6 +1764,7 @@ public abstract class WallpaperService extends Service {
float finalStep = step; float finalStep = step;
int finalPageIndx = pageIndx; int finalPageIndx = pageIndx;
Bitmap screenShot = page.getBitmap(); Bitmap screenShot = page.getBitmap();
if (screenShot == null) screenShot = mLastScreenshot;
if (screenShot == null || screenShot.isRecycled()) { if (screenShot == null || screenShot.isRecycled()) {
if (DEBUG) { if (DEBUG) {
Log.d(TAG, "invalid bitmap " + screenShot Log.d(TAG, "invalid bitmap " + screenShot