Always update date picker position after change in range

BUG: 18204507
Change-Id: Id3ae11cdb68f60901a3145ebd93f3acbbccd71d2
This commit is contained in:
Alan Viverette
2014-11-03 18:31:36 -08:00
parent 6f7fd0ba50
commit 5ecbfeb38b

View File

@@ -107,9 +107,9 @@ class DayPickerView extends ListView implements AbsListView.OnScrollListener,
mAdapter.setRange(mMinDate, mMaxDate);
if (constrainCalendar(mSelectedDay, mMinDate, mMaxDate)) {
goTo(mSelectedDay, false, true, true);
}
// Changing the min/max date changes the selection position since we
// don't really have stable IDs.
goTo(mSelectedDay, false, true, true);
}
/**