Merge "Null check if renderer is null" into sc-v2-dev
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user