diff options
Diffstat (limited to 'src/com/cyanogenmod/lockclock/calendar/CalendarViewsService.java')
-rwxr-xr-x | src/com/cyanogenmod/lockclock/calendar/CalendarViewsService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/lockclock/calendar/CalendarViewsService.java b/src/com/cyanogenmod/lockclock/calendar/CalendarViewsService.java index 893d8f7..6e207e4 100755 --- a/src/com/cyanogenmod/lockclock/calendar/CalendarViewsService.java +++ b/src/com/cyanogenmod/lockclock/calendar/CalendarViewsService.java @@ -290,6 +290,7 @@ class CalendarRemoteViewsFactory implements RemoteViewsFactory { final String description = cursor.getString(indexDescription); final String location = cursor.getString(indexLocation); final boolean allDay = cursor.getInt(indexAllDay) != 0; + final boolean multiDay = allDay && (end - begin) > DAY_IN_MILLIS; int format = 0; if (allDay) { @@ -314,7 +315,7 @@ class CalendarRemoteViewsFactory implements RemoteViewsFactory { } else { format = Constants.CALENDAR_FORMAT_FUTURE; } - if (allDay || begin == end) { + if ((allDay && !multiDay) || begin == end) { sb.append(DateUtils.formatDateTime(context, begin, format)); } else { sb.append(DateUtils.formatDateRange(context, begin, end, format)); |