Skip to content

Commit

Permalink
Refresh day picker view when min or max date is set.
Browse files Browse the repository at this point in the history
  • Loading branch information
philliphsu committed May 7, 2017
1 parent ef348ae commit 77f96d1
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,10 @@ public void setYearRange(int startYear, int endYear) {
*/
public void setMinDate(Calendar calendar) {
mMinDate = calendar;

if (mDayPickerView != null) {
mDayPickerView.onChange();
}
}

/**
Expand All @@ -639,6 +643,10 @@ public Calendar getMinDate() {
*/
public void setMaxDate(Calendar calendar) {
mMaxDate = calendar;

if (mDayPickerView != null) {
mDayPickerView.onChange();
}
}

/**
Expand Down

0 comments on commit 77f96d1

Please sign in to comment.