Merge change 5142 into donut

* changes:
  Fix NPE in GradientDrawable constructor
This commit is contained in:
Android (Google) Code Review
2009-06-24 09:48:07 -07:00

View File

@@ -880,7 +880,9 @@ public class GradientDrawable extends Drawable {
mShape = state.mShape;
mGradient = state.mGradient;
mOrientation = state.mOrientation;
mColors = state.mColors.clone();
if (state.mColors != null) {
mColors = state.mColors.clone();
}
if (state.mPositions != null) {
mPositions = state.mPositions.clone();
}