Remove restriction that zip files must provide all images
diff --git a/lottie/src/main/java/com/airbnb/lottie/LottieCompositionFactory.java b/lottie/src/main/java/com/airbnb/lottie/LottieCompositionFactory.java
index b74bcb1..13b1194 100644
--- a/lottie/src/main/java/com/airbnb/lottie/LottieCompositionFactory.java
+++ b/lottie/src/main/java/com/airbnb/lottie/LottieCompositionFactory.java
@@ -554,13 +554,6 @@
}
}
- // Ensure that all bitmaps have been set.
- for (Map.Entry<String, LottieImageAsset> entry : composition.getImages().entrySet()) {
- if (entry.getValue().getBitmap() == null) {
- return new LottieResult<>(new IllegalStateException("There is no image for " + entry.getValue().getFileName()));
- }
- }
-
if (cacheKey != null) {
LottieCompositionCache.getInstance().put(cacheKey, composition);
}