Skip to content

Commit

Permalink
1、修复bug
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyJingFish committed Jun 6, 2023
1 parent a9b3c3b commit 4430bbe
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,6 @@ public float[] getGradientStrokePositions() {

public void setGradientStrokePositions(float[] gradientStrokePositions) {
this.gradientStrokePositions = gradientStrokePositions;

invalidate();
}

Expand Down Expand Up @@ -411,7 +410,7 @@ public void setGradientColors(@Nullable ColorStateList[] colorStateLists) {
}
updateColors();
}else {
gradientStrokeColor = false;
gradientColor = false;
if (!updateColors()){
invalidate();
}
Expand All @@ -424,7 +423,6 @@ public float[] getGradientPositions() {

public void setGradientPositions(float[] gradientPositions) {
this.gradientPositions = gradientPositions;
gradientColor = gradientPositions != null;
invalidate();
}

Expand Down

0 comments on commit 4430bbe

Please sign in to comment.