Skip to content

Commit

Permalink
Merge pull request #9042 from hansemannn/TIMOB-24464-6_1_X
Browse files Browse the repository at this point in the history
[TIMOB-24464] (6_1_X) Android: Ti.Calendar.Calendar.getEventsBetweenDates returns same events for all calendars
  • Loading branch information
Lokesh Choudhary committed May 13, 2017
2 parents 3772c8b + 045453b commit 58732e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public static EventProxy createEvent(CalendarProxy calendar, KrollDict data)
public static ArrayList<EventProxy> queryEventsBetweenDates(long date1, long date2, CalendarProxy calendar)
{
if (Build.VERSION.SDK_INT >= 11) {
return queryEventsBetweenDates(date1, date2, null, null);
return queryEventsBetweenDates(date1, date2, "calendar_id=" + calendar.getId(), null);
} else {
return queryEventsBetweenDates(date1, date2, "Calendars._id=" + calendar.getId(), null);
}
Expand Down

0 comments on commit 58732e7

Please sign in to comment.