Skip to content

Commit f8a541a

Browse files
author
Laurent Meyer
committed
Corrected the docs following @caske33 advices
1 parent 0e422b5 commit f8a541a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/src/main/java/com/alamkanak/weekview/WeekView.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,8 +1468,10 @@ public interface EventClickListener {
14681468
public interface MonthChangeListener {
14691469
/**
14701470
* Very important interface, it's the base to load events in the calendar.
1471+
* This method is called three times: once to load the previous month, once to load the next month and once to load the current month.
1472+
* <strong>That's why you can have three times the same event at the same place if you mess up with the configuration</strong>
14711473
* @param newYear: year of the events required by the view.
1472-
* @param newMonth: month of the events required by the view.
1474+
* @param newMonth: month of the events required by the view <strong>1 based (not like JAVA API) --> January = 1 and December = 12</strong>.
14731475
* @return a list of the events happening <strong>during the specified month</strong>.
14741476
*/
14751477
public List<WeekViewEvent> onMonthChange(int newYear, int newMonth);

0 commit comments

Comments
 (0)