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

Commit ab3ad1dd authored by Gus Prevas's avatar Gus Prevas
Browse files

Fixes clipping of icons in shelf.

This change restores a branch removed in ag/5220056 which clears the
clip on notification icons once they have entered the shelf.

Bug: 111405682
Test: manually
Change-Id: I1f5a8cd2684fd7d0f223bec81f58388d64e1683c
parent 1e5b5d03
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -405,6 +405,8 @@ public class NotificationShelf extends ActivatableNotificationView implements
            int top = (int) (maxTop - shelfIconPosition);
            Rect clipRect = new Rect(0, top, icon.getWidth(), Math.max(top, icon.getHeight()));
            icon.setClipBounds(clipRect);
        } else {
            icon.setClipBounds(null);
        }
    }