Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

设置时间范围有错 #1004

Open
jsoncheng opened this issue Feb 7, 2022 · 2 comments
Open

设置时间范围有错 #1004

jsoncheng opened this issue Feb 7, 2022 · 2 comments

Comments

@jsoncheng
Copy link

当设置了日期范围时,滚轮初始设置日期会定位不对

WheelTime.java => 352行

wv_day.setAdapter(new NumericWheelAdapter(startDay, leapYear ? 29 : 28));

没有判断是否为设置范围的那个年月日就加入了startDay,导致打开日期栏就错了

@luckyAF
Copy link

luckyAF commented Feb 8, 2022

哈哈 我这儿也出问题了 看了代码才知道
startDay 改成1应该就可以了
还是自己再打个包吧

@billhello
Copy link

1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants