Skip to content

Commit 0b1d5ae

Browse files
committed
Update DateSelectorWheelView.java
修复当前日期为1号时选择日期错误的bug
1 parent 40999b5 commit 0b1d5ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

DateSelector/src/com/summerxia/dateselector/widget/DateSelectorWheelView.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,10 @@ public void onChanged(WheelView wheel, int oldValue, int newValue) {
379379
}
380380
break;
381381
default:
382-
wvDay.setAdapter(smallDaysAdapter);
382+
wvDay.setAdapter(normalDaysAdapter);
383383
break;
384384
}
385+
wvDay.setCurrentItem(0);
385386
break;
386387
case R.id.wv_date_of_day:
387388
tvDay.setText(DateUtils.splitDateString(wvDay.getCurrentItemValue())

0 commit comments

Comments
 (0)