Skip to content

Commit

Permalink
Do not call setYearRange() in setMinDate() or setMaxDate().
Browse files Browse the repository at this point in the history
  • Loading branch information
philliphsu committed May 7, 2017
1 parent 03d9dee commit ef348ae
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,6 @@ public void setYearRange(int startYear, int endYear) {
*/
public void setMinDate(Calendar calendar) {
mMinDate = calendar;
setYearRange(calendar.get(Calendar.YEAR), mMaxYear);
}

/**
Expand All @@ -640,7 +639,6 @@ public Calendar getMinDate() {
*/
public void setMaxDate(Calendar calendar) {
mMaxDate = calendar;
setYearRange(mMinYear, calendar.get(Calendar.YEAR));
}

/**
Expand Down Expand Up @@ -884,7 +882,6 @@ public Builder setYearRange(int startYear, int endYear) {
*/
public Builder setMinDate(Calendar calendar) {
mMinDate = calendar;
setYearRange(calendar.get(Calendar.YEAR), mMaxYear);
return this;
}

Expand All @@ -896,7 +893,6 @@ public Builder setMinDate(Calendar calendar) {
*/
public Builder setMaxDate(Calendar calendar) {
mMaxDate = calendar;
setYearRange(mMinYear, calendar.get(Calendar.YEAR));
return this;
}

Expand Down

0 comments on commit ef348ae

Please sign in to comment.