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

Commit 81e6bb14 authored by Alan Viverette's avatar Alan Viverette Committed by android-build-merger
Browse files

Merge "Always mutate child when added to drawable container" into nyc-dev am: d1f686f5

am: 2b5efd45

* commit '2b5efd45':
  Always mutate child when added to drawable container

Change-Id: I12e2089360df06bacba56c0e98daccda0ee48d20
parents 9b2a1eff 2b5efd45
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -786,13 +786,19 @@ public class DrawableContainer extends Drawable implements Drawable.Callback {
            return mChangingConfigurations | mChildrenChangingConfigurations;
        }

        /**
         * Adds the drawable to the end of the list of contained drawables.
         *
         * @param dr the drawable to add
         * @return the position of the drawable within the container
         */
        public final int addChild(Drawable dr) {
            final int pos = mNumChildren;

            if (pos >= mDrawables.length) {
                growArray(pos, pos+10);
            }

            dr.mutate();
            dr.setVisible(false, true);
            dr.setCallback(mOwner);