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 25, 2018
1 parent 892c5c8 commit dc75635
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 @@ -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();
}
Expand Down

0 comments on commit dc75635

Please sign in to comment.