Merge "AdaptiveIconDrawable should not update layer bounds when bound is empty" into oc-dr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e54ad58aea
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user