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

This commit is contained in:
TreeHugger Robot
2017-06-29 19:18:52 +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) {
if (bounds.isEmpty()) {
return;
}
try {
suspendChildInvalidation();
updateLayerBoundsInternal(bounds);
@@ -1109,4 +1112,4 @@ public class AdaptiveIconDrawable extends Drawable implements Drawable.Callback
mCheckedStateful = false;
}
}
}
}