diff options
author | Romain Guy <romainguy@google.com> | 2011-04-26 11:40:14 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2011-04-26 11:40:14 -0700 |
commit | ee6d5cfdff475f6c1119f060b139bdc1b621fa8b (patch) | |
tree | 05dc118e466f070648e428f4ed33a4acffda79a3 | |
parent | 8f67eae87ae84fb0c17e7fd4c9b6a62e73b0de29 (diff) | |
download | frameworks_base-ee6d5cfdff475f6c1119f060b139bdc1b621fa8b.zip frameworks_base-ee6d5cfdff475f6c1119f060b139bdc1b621fa8b.tar.gz frameworks_base-ee6d5cfdff475f6c1119f060b139bdc1b621fa8b.tar.bz2 |
Copy the solid color when mutating a gradient drawable.
Change-Id: If3eed36b81f54bb5a56eab7784feda3e3786f8fc
-rw-r--r-- | graphics/java/android/graphics/drawable/GradientDrawable.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/drawable/GradientDrawable.java b/graphics/java/android/graphics/drawable/GradientDrawable.java index 33f050c..7adea06 100644 --- a/graphics/java/android/graphics/drawable/GradientDrawable.java +++ b/graphics/java/android/graphics/drawable/GradientDrawable.java @@ -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; |