Skip to content

Commit

Permalink
处理月份最大最小值问题
Browse files Browse the repository at this point in the history
  • Loading branch information
loper7 committed Jan 25, 2022
1 parent c334571 commit 47a9eee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ class DateTimeController : BaseDateTimeController() {


mMonthSpinner?.run {
maxValue = maxCalendar.get(Calendar.MONTH)
minValue = minCalendar.get(Calendar.MONTH)
maxValue = maxCalendar.get(Calendar.MONTH)+1
minValue = minCalendar.get(Calendar.MONTH)+1
value = calendar.get(Calendar.MONTH) + 1
isFocusable = true
isFocusableInTouchMode = true
Expand Down

0 comments on commit 47a9eee

Please sign in to comment.