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

Commit ad0edade authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "If LayerDrawable child doesn't have constant state, use shallow copy"

parents fafb81b7 4d47d259
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1772,7 +1772,9 @@ public class LayerDrawable extends Drawable implements Drawable.Callback {
            final Drawable clone;
            if (dr != null) {
                final ConstantState cs = dr.getConstantState();
                if (res != null) {
                if (cs == null) {
                    clone = dr;
                } else if (res != null) {
                    clone = cs.newDrawable(res);
                } else {
                    clone = cs.newDrawable();