Skip to content

Commit

Permalink
Merge pull request prolificinteractive#331 from prolificinteractive/e…
Browse files Browse the repository at this point in the history
…c/fix_min_date

Fix - Min date after current month
  • Loading branch information
ekchang committed Jun 1, 2016
2 parents 3bd8a55 + 21f239e commit 3a8177c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,9 @@ private void setRangeDates(CalendarDay min, CalendarDay max) {
CalendarDay c = currentMonth;
adapter.setRangeDates(min, max);
currentMonth = c;
if (min != null) {
currentMonth = min.isAfter(currentMonth) ? min : currentMonth;
}
int position = adapter.getIndexForDay(c);
pager.setCurrentItem(position, false);
updateUi();
Expand Down

0 comments on commit 3a8177c

Please sign in to comment.