Skip to content

Commit f3a39f2

Browse files
adampAndroid (Google) Code Review
authored andcommitted
Merge "Remove overzealous mutate() sanity check in LayerDrawable" into jb-mr1.1-dev
2 parents 5c0f3e5 + bb53dad commit f3a39f2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

graphics/java/android/graphics/drawable/LayerDrawable.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -575,10 +575,6 @@ public ConstantState getConstantState() {
575575
@Override
576576
public Drawable mutate() {
577577
if (!mMutated && super.mutate() == this) {
578-
if (!mLayerState.canConstantState()) {
579-
throw new IllegalStateException("One or more children of this LayerDrawable does " +
580-
"not have constant state; this drawable cannot be mutated.");
581-
}
582578
mLayerState = new LayerState(mLayerState, this, null);
583579
final ChildDrawable[] array = mLayerState.mChildren;
584580
final int N = mLayerState.mNum;

0 commit comments

Comments
 (0)