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

Commit dba9934f authored by Hyunyoung Song's avatar Hyunyoung Song
Browse files

AdaptiveIconDrawable should not update layer bounds when bound is empty

Test: build succeeds. Also, setting tint mode does not result in error.

Bug: 37682281
Change-Id: I5991b8e58514a2130a793a5edb90baeafae9b148
parent bf15050a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -289,6 +289,9 @@ public class AdaptiveIconDrawable extends Drawable implements Drawable.Callback
    }

    private void updateLayerBounds(Rect bounds) {
        if (bounds.isEmpty()) {
            return;
        }
        try {
            suspendChildInvalidation();
            updateLayerBoundsInternal(bounds);