From 8b58884f59785ff576788206bac6c2383074942b 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 e892422..7437498 100644 --- a/spark/src/main/java/com/robinhood/spark/SparkView.java +++ b/spark/src/main/java/com/robinhood/spark/SparkView.java @@ -343,8 +343,10 @@ public void setAnimationPath(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(); }