MagicMashRoom / SuperCalendar

@Deprecated android 自定义日历控件 支持左右无限滑动 周月切换 标记日期显示 自定义显示效果跳转到指定日期
2.76k stars 484 forks source link

Cant change current data programmatically #135

Closed pcg92 closed 6 years ago

pcg92 commented 6 years ago

Im calling calendarAdapter.notifyDataChanged(date); with the error

  java.lang.ArrayIndexOutOfBoundsException: length=5; index=-1
at java.util.ArrayList.get(ArrayList.java:439)
at com.ldf.calendar.component.CalendarViewAdapter.refreshCalendar(CalendarViewAdapter.java:256)
at com.ldf.calendar.component.CalendarViewAdapter.notifyDataChanged(CalendarViewAdapter.java:219)
pcg92 commented 6 years ago

Im losing a lot of time with this problem

java.lang.ArrayIndexOutOfBoundsException: length=10; index=-1 at java.util.ArrayList.get(ArrayList.java:413) at com.ldf.calendar.component.CalendarViewAdapter.switchToWeek(CalendarViewAdapter.java:189)