зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1236212 - Adjust month number spinner to account for the fact that month is 0-based. r=rnewman
--HG-- extra : commitid : EkKexdohmb5 extra : rebase_source : f076321eb2fb64094e86c59b82389d323ed11f71
This commit is contained in:
Родитель
d3e09cd07e
Коммит
ab6fdf115d
|
@ -354,7 +354,7 @@ public class DateTimePicker extends FrameLayout {
|
|||
mDaySpinnerInput = (EditText) mDaySpinner.getChildAt(1);
|
||||
|
||||
mMonthSpinner = setupSpinner(R.id.month, 1,
|
||||
mTempDate.get(Calendar.MONTH));
|
||||
mTempDate.get(Calendar.MONTH) + 1); // Month is 0-based
|
||||
mMonthSpinner.setFormatter(TWO_DIGIT_FORMATTER);
|
||||
mMonthSpinner.setDisplayedValues(mShortMonths);
|
||||
mMonthSpinnerInput = (EditText) mMonthSpinner.getChildAt(1);
|
||||
|
|
Загрузка…
Ссылка в новой задаче