Always update date picker position after change in range
BUG: 18204507 Change-Id: Id3ae11cdb68f60901a3145ebd93f3acbbccd71d2
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user