diff --git a/library/src/main/java/com/flyjingfish/gradienttextviewlib/GradientTextView.java b/library/src/main/java/com/flyjingfish/gradienttextviewlib/GradientTextView.java index 6e88eac..ff3f190 100644 --- a/library/src/main/java/com/flyjingfish/gradienttextviewlib/GradientTextView.java +++ b/library/src/main/java/com/flyjingfish/gradienttextviewlib/GradientTextView.java @@ -374,7 +374,6 @@ public float[] getGradientStrokePositions() { public void setGradientStrokePositions(float[] gradientStrokePositions) { this.gradientStrokePositions = gradientStrokePositions; - invalidate(); } @@ -411,7 +410,7 @@ public void setGradientColors(@Nullable ColorStateList[] colorStateLists) { } updateColors(); }else { - gradientStrokeColor = false; + gradientColor = false; if (!updateColors()){ invalidate(); } @@ -424,7 +423,6 @@ public float[] getGradientPositions() { public void setGradientPositions(float[] gradientPositions) { this.gradientPositions = gradientPositions; - gradientColor = gradientPositions != null; invalidate(); }