Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ecbfeb3 authored by Alan Viverette's avatar Alan Viverette
Browse files

Always update date picker position after change in range

BUG: 18204507
Change-Id: Id3ae11cdb68f60901a3145ebd93f3acbbccd71d2
parent 6f7fd0ba
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -107,10 +107,10 @@ class DayPickerView extends ListView implements AbsListView.OnScrollListener,

        mAdapter.setRange(mMinDate, mMaxDate);

        if (constrainCalendar(mSelectedDay, mMinDate, mMaxDate)) {
        // Changing the min/max date changes the selection position since we
        // don't really have stable IDs.
        goTo(mSelectedDay, false, true, true);
    }
    }

    /**
     * Constrains the supplied calendar to stay within the min and max