Code example for DateFormatSymbols

0
        if (mYear != year || mMonth != monthOfYear || mDay != dayOfMonth) {
            mYear = (mYearOptional && year == 0) ? getCurrentYear() : year;
            mMonth = monthOfYear;
            mDay = dayOfMonth;
            updateSpinners(); 
            reorderPickers(new DateFormatSymbols().getShortMonths());
            notifyDateChanged(); 
        } 
    } 
 
    private static int getCurrentYear() { 
        return Calendar.getInstance().get(Calendar.YEAR);
    } 
 
    private static class SavedState extends BaseSavedState {
 
        private final int mYear;
        private final int mMonth;
        private final int mDay;
        private final boolean mHasYear;
        private final boolean mYearOptional;