Merge "Null check if renderer is null" into sc-v2-dev am: 31281969e6

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

Change-Id: Ic4d95eb6db481f282b9be56c40878b12241fd9fb
This commit is contained in:
Jay Aliomer
2021-10-20 17:23:40 +00:00
committed by Automerger Merge Worker

View File

@@ -238,9 +238,7 @@ public class ImageWallpaper extends WallpaperService {
Bitmap bitmap = mMiniBitmap; Bitmap bitmap = mMiniBitmap;
if (bitmap == null) { if (bitmap == null) {
mLocalColorsToAdd.addAll(regions); mLocalColorsToAdd.addAll(regions);
mRenderer.use(b -> { if (mRenderer != null) mRenderer.use(this::updateMiniBitmapAndNotify);
updateMiniBitmapAndNotify(b);
});
} else { } else {
computeAndNotifyLocalColors(regions, bitmap); computeAndNotifyLocalColors(regions, bitmap);
} }