am f3a39f2d: Merge "Remove overzealous mutate() sanity check in LayerDrawable" into jb-mr1.1-dev
* commit 'f3a39f2df40503e8e3a91937f9f5f33b43528274': Remove overzealous mutate() sanity check in LayerDrawable
This commit is contained in:
@@ -575,10 +575,6 @@ public class LayerDrawable extends Drawable implements Drawable.Callback {
|
||||
@Override
|
||||
public Drawable mutate() {
|
||||
if (!mMutated && super.mutate() == this) {
|
||||
if (!mLayerState.canConstantState()) {
|
||||
throw new IllegalStateException("One or more children of this LayerDrawable does " +
|
||||
"not have constant state; this drawable cannot be mutated.");
|
||||
}
|
||||
mLayerState = new LayerState(mLayerState, this, null);
|
||||
final ChildDrawable[] array = mLayerState.mChildren;
|
||||
final int N = mLayerState.mNum;
|
||||
|
||||
Reference in New Issue
Block a user