Skip to content

Commit

Permalink
Calls fireChangedEvent() earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondobama committed Sep 21, 2017
1 parent bd1738e commit e6dc03d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CodenameOne/src/com/codename1/ui/Calendar.java
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,7 @@ public void setSelectedDay(long selectedDay) {
}

private void setMonth(int year, int month) {
fireMonthChangedEvent();
java.util.Calendar cal = java.util.Calendar.getInstance(tmz);
cal.setTimeZone(TimeZone.getDefault());
cal.set(java.util.Calendar.MONTH, month);
Expand All @@ -1164,7 +1165,6 @@ private void setMonth(int year, int month) {
cal.setTime(new Date(d));
}
setCurrentDay(d);
fireMonthChangedEvent();
}

public void decrementMonth() {
Expand Down

0 comments on commit e6dc03d

Please sign in to comment.