From dc756358561b1effdffe69cdd27954beb7e3f64d Mon Sep 17 00:00:00 2001 From: Cameron Mace Date: Wed, 4 Apr 2018 15:10:48 -0400 Subject: [PATCH] fixed line drawing from coordinate 0 when fill isn't enabled --- spark/src/main/java/com/robinhood/spark/SparkView.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); }