Skip to content

Commit

Permalink
Fixed wrong month value in content description for calendar cells.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnowelzel committed Oct 28, 2014
1 parent 5715f8b commit 4f66569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/de/arnowelzel/android/periodical/CalendarCell.java
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public void updateContentDescription()
{
String contentDescription = "";
GregorianCalendarExt cal= new GregorianCalendarExt();
cal.set(getYear(), getMonth(), getDay());
cal.set(getYear(), getMonth()-1, getDay());

contentDescription = DateUtils.formatDateTime(getContext(), cal.getTimeInMillis(),
DateUtils.FORMAT_SHOW_DATE|DateUtils.FORMAT_SHOW_YEAR);
Expand Down

0 comments on commit 4f66569

Please sign in to comment.