Merge "Fixes minimum date in DatePicker" into sc-dev
This commit is contained in:
@@ -259,6 +259,11 @@ class DatePickerCalendarDelegate extends DatePicker.AbstractDatePickerDelegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mCurrentDate.set(Calendar.YEAR, year);
|
mCurrentDate.set(Calendar.YEAR, year);
|
||||||
|
if (mCurrentDate.compareTo(mMinDate) < 0) {
|
||||||
|
mCurrentDate.setTimeInMillis(mMinDate.getTimeInMillis());
|
||||||
|
} else if (mCurrentDate.compareTo(mMaxDate) > 0) {
|
||||||
|
mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis());
|
||||||
|
}
|
||||||
onDateChanged(true, true);
|
onDateChanged(true, true);
|
||||||
|
|
||||||
// Automatically switch to day picker.
|
// Automatically switch to day picker.
|
||||||
|
|||||||
Reference in New Issue
Block a user