From ab3ad1dd93874f259423901f03a2245fef2964ed Mon Sep 17 00:00:00 2001 From: Gus Prevas Date: Thu, 1 Nov 2018 17:11:59 -0400 Subject: 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 --- .../SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java index 39b8a9fd217c..bf336141d622 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java @@ -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); } } -- cgit v1.2.3-59-g8ed1b