Skip to content

Commit

Permalink
Merge pull request #24 from TheIronMarx/bug20
Browse files Browse the repository at this point in the history
Fixes issue #20
  • Loading branch information
muraee authored Jun 1, 2017
2 parents abaaf2d + e08330a commit bb417dc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ public void selectDate(Date date, boolean immediate) {
handler.immediate = immediate;
} else {
if (immediate) {
centerToPositionWithNoAnimation(positionOfDate(date));
int datePosition = positionOfDate(date);
centerToPositionWithNoAnimation(datePosition);
calendarListener.onDateSelected(date, datePosition);
} else {
calendarView.setSmoothScrollSpeed(HorizontalLayoutManager.SPEED_NORMAL);
centerCalendarToPosition(positionOfDate(date));
Expand Down

0 comments on commit bb417dc

Please sign in to comment.