From 4430bbed5dd98167a43b2b15452d61c607c996c0 Mon Sep 17 00:00:00 2001 From: FlyJingFish Date: Tue, 6 Jun 2023 21:11:11 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/flyjingfish/gradienttextviewlib/GradientTextView.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(); }