Don't render masks or mattes of <1px
diff --git a/lottie/src/main/java/com/airbnb/lottie/model/layer/BaseLayer.java b/lottie/src/main/java/com/airbnb/lottie/model/layer/BaseLayer.java
index 9f12706..71acea8 100644
--- a/lottie/src/main/java/com/airbnb/lottie/model/layer/BaseLayer.java
+++ b/lottie/src/main/java/com/airbnb/lottie/model/layer/BaseLayer.java
@@ -256,7 +256,10 @@
L.endSection("Layer#computeBounds");
- if (!rect.isEmpty()) {
+ // Ensure that what we are drawing is >=1px of width and height.
+ // On older devices, drawing to an offscreen buffer of <1px would draw back as a black bar.
+ // https://github.com/airbnb/lottie-android/issues/1625
+ if (rect.width() >= 1f && rect.height() >= 1f) {
L.beginSection("Layer#saveLayer");
contentPaint.setAlpha(255);
Utils.saveLayerCompat(canvas, rect, contentPaint);