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

Commit ee6d5cfd authored by Romain Guy's avatar Romain Guy
Browse files

Copy the solid color when mutating a gradient drawable.

Change-Id: If3eed36b81f54bb5a56eab7784feda3e3786f8fc
parent 8f67eae8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -931,6 +931,7 @@ public class GradientDrawable extends Drawable {
                mPositions = state.mPositions.clone();
            }
            mHasSolidColor = state.mHasSolidColor;
            mSolidColor = state.mSolidColor;
            mStrokeWidth = state.mStrokeWidth;
            mStrokeColor = state.mStrokeColor;
            mStrokeDashWidth = state.mStrokeDashWidth;