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

Commit aa33a487 authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "Always update date picker position after change in range" into lmp-mr1-dev

parents efd8a85d 5ecbfeb3
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