Merge "AdaptiveIconDrawable should not update layer bounds when bound is empty" into oc-dr1-dev
am: e54ad58aea
Change-Id: I01b6fd2391e1296546291af5db5a4663e67fae01
This commit is contained in:
@@ -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);
|
||||||
@@ -1109,4 +1112,4 @@ public class AdaptiveIconDrawable extends Drawable implements Drawable.Callback
|
|||||||
mCheckedStateful = false;
|
mCheckedStateful = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user