Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0085dae7 authored by Abhishek Aggarwal's avatar Abhishek Aggarwal
Browse files

fixup!: check height width before converting to bitmap

parent f5c37962
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -305,6 +305,7 @@ public class BaseIconFactory implements AutoCloseable {
            scale = getNormalizer().getScale(icon, outIconBounds, dr.getIconMask(), outShape);
            if (!(icon instanceof AdaptiveIconDrawable) && !outShape[0]) {
                FixedScaleDrawable fsd = ((FixedScaleDrawable) dr.getForeground());
                fsd.setDrawable(icon);

                int color;
                if (icon.getIntrinsicHeight() > 0 && icon.getIntrinsicWidth() > 0) {