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

Commit 5220834c authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android (Google) Code Review
Browse files

Merge "Down arrow on the month can end up at the start of the month" into honeycomb

parents 6ed4a2f7 d7419986
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -514,10 +514,11 @@ public class DatePicker extends FrameLayout {
     * inconsistent date the values are normalized before updating the spinners.
     */
    private void updateSpinners(int year, int month, int dayOfMonth) {
        mCurrentDate.set(Calendar.YEAR, year);
        // compute the deltas before modifying the current date
        int deltaMonths = getDelataMonth(month);
        mCurrentDate.add(Calendar.MONTH, deltaMonths);
        int deltaDays = getDelataDayOfMonth(dayOfMonth);
        mCurrentDate.set(Calendar.YEAR, year);
        mCurrentDate.add(Calendar.MONTH, deltaMonths);
        mCurrentDate.add(Calendar.DAY_OF_MONTH, deltaDays);

        if (mCurrentDate.before(mMinDate)) {