We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5c0f3e5 + bb53dad commit f3a39f2Copy full SHA for f3a39f2
graphics/java/android/graphics/drawable/LayerDrawable.java
@@ -575,10 +575,6 @@ public ConstantState getConstantState() {
575
@Override
576
public Drawable mutate() {
577
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
- }
582
mLayerState = new LayerState(mLayerState, this, null);
583
final ChildDrawable[] array = mLayerState.mChildren;
584
final int N = mLayerState.mNum;
0 commit comments