Merge "Fixes clipping of icons in shelf."

This commit is contained in:
TreeHugger Robot
2018-11-02 13:49:14 +00:00
committed by Android (Google) Code Review

View File

@@ -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);
}
}