Merge "AdaptiveIconDrawable should not update layer bounds when bound is empty" into oc-dev

This commit is contained in:
Shailesh Saini
2018-02-01 21:20:24 +00:00
committed by Android (Google) Code Review

View File

@@ -289,6 +289,9 @@ public class AdaptiveIconDrawable extends Drawable implements Drawable.Callback
} }
private void updateLayerBounds(Rect bounds) { private void updateLayerBounds(Rect bounds) {
if (bounds.isEmpty()) {
return;
}
try { try {
suspendChildInvalidation(); suspendChildInvalidation();
updateLayerBoundsInternal(bounds); updateLayerBoundsInternal(bounds);