Skip to content

Conversation

@SherifMakhlouf
Copy link

Setting default last month like this

lastMonth = typedArray.getInt(R.styleable.DayPickerView_lastMonth, (calendar.get(Calendar.MONTH) - 1) % MONTHS_IN_YEAR);

usually ends up with empty listView, as the getCount will return 0. So I setting it to last month in year may be a good work around.

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

Successfully merging this pull request may close these issues.

1 participant