Merge "Fixes clipping of icons in shelf."
This commit is contained in:
committed by
Android (Google) Code Review
commit
07e8416f8f
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user