diff options
| author | 2018-11-01 17:11:59 -0400 | |
|---|---|---|
| committer | 2018-11-01 17:11:59 -0400 | |
| commit | ab3ad1dd93874f259423901f03a2245fef2964ed (patch) | |
| tree | 3e248bd82cedda73d34145a9e4cafdb752c421b8 | |
| parent | 1e5b5d0326eb1e526f1c5dbf781538072996fdc2 (diff) | |
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
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java | 2 |
1 files changed, 2 insertions, 0 deletions
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); } } |