Skip to content

Commit

Permalink
Modified X to CHECK bottom line width
Browse files Browse the repository at this point in the history
  • Loading branch information
balysv committed Sep 6, 2014
1 parent 6b43ebd commit 2798b3c
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ private void drawBottomLine(Canvas canvas, float ratio) {

// shorten both ends
startX += dip3 - dip3 * (1 - ratio);
stopX -= resolveStrokeModifier(1) - dip6 * (1 - ratio);
stopX -= resolveStrokeModifier(1 - ratio);
break;
}

Expand Down Expand Up @@ -514,17 +514,17 @@ private boolean isMorphingForward() {
private float resolveStrokeModifier(float ratio) {
switch (stroke) {
case REGULAR:
if (animationState == AnimationState.ARROW_X) {
if (animationState == AnimationState.ARROW_X || animationState == AnimationState.X_CHECK) {
return dip3 - (dip6 * ratio);
}
return ratio * dip3;
case THIN:
if (animationState == AnimationState.ARROW_X) {
return dip3 + diph - ((dip6 + diph) * ratio);
if (animationState == AnimationState.ARROW_X || animationState == AnimationState.X_CHECK) {
return dip3 + diph - (dip6 + diph) * ratio;
}
return ratio * (dip3 + diph);
case EXTRA_THIN:
if (animationState == AnimationState.ARROW_X) {
if (animationState == AnimationState.ARROW_X || animationState == AnimationState.X_CHECK) {
return dip4 - ((dip6 + dip1) * ratio);
}
return ratio * dip4;
Expand Down

0 comments on commit 2798b3c

Please sign in to comment.