Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 507a2d98 authored by Adam Powell's avatar Adam Powell Committed by Android Git Automerger
Browse files

am c87b053b: am b29dc7e3: am f3a39f2d: Merge "Remove overzealous mutate()...

am c87b053b: am b29dc7e3: am f3a39f2d: Merge "Remove overzealous mutate() sanity check in LayerDrawable" into jb-mr1.1-dev

* commit 'c87b053b':
  Remove overzealous mutate() sanity check in LayerDrawable
parents 3e1c6f8a c87b053b
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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;