Skip to content

Commit

Permalink
fixed line drawing from coordinate 0 when fill isn't enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Mace committed Apr 4, 2018
1 parent 6b99d26 commit 8b58884
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spark/src/main/java/com/robinhood/spark/SparkView.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 8b58884

Please sign in to comment.