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

Commit 89809584 authored by Hyunyoung Song's avatar Hyunyoung Song Committed by Sunny Goyal
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
Bug: 69969749
Change-Id: I5991b8e58514a2130a793a5edb90baeafae9b148
parent 0d1b1a25
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -289,6 +289,9 @@ public class AdaptiveIconDrawable extends Drawable implements Drawable.Callback
    }
    }


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