Merge "Null check if renderer is null" into sc-v2-dev

This commit is contained in:
Jay Aliomer
2021-10-20 17:19:41 +00:00
committed by Android (Google) Code Review

View File

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