diff --git a/spark/src/main/java/com/robinhood/spark/SparkView.java b/spark/src/main/java/com/robinhood/spark/SparkView.java index 4752a99..9176030 100644 --- a/spark/src/main/java/com/robinhood/spark/SparkView.java +++ b/spark/src/main/java/com/robinhood/spark/SparkView.java @@ -356,8 +356,10 @@ public void setAnimationPath(@NonNull final Path animationPath) { this.renderPath.reset(); this.renderPath.addPath(animationPath); - this.renderPath.rLineTo(0, fillType == FillType.UP ? -getHeight(): fillY); - this.renderPath.lineTo(0, fillY); + this.renderPath.rLineTo(0, fillType == FillType.UP ? -getHeight() : fillY); + if (fillType != FillType.NONE) { + this.renderPath.lineTo(0, fillY); + } invalidate(); }