Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Jan 9, 2018
2 parents a3a60c4 + 9fcc53d commit 0991c6b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 10 additions & 2 deletions calendar.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Calendar._fields = {
LOCATION: "eventLocation",
STARTDATE: "dtstart",
ENDDATE: "dtend",
BEGIN: "begin",
END: "end",
ALLDAY: "allDay",
TIMEZONE: "eventTimezone",
HAS_ALARM: "hasAlarm",
Expand Down Expand Up @@ -156,7 +158,10 @@ Calendar._findEvents = function(arg) {
Calendar._fields.LOCATION,
Calendar._fields.STARTDATE,
Calendar._fields.ENDDATE,
Calendar._fields.ALLDAY
Calendar._fields.ALLDAY,
Calendar._fields.RRULE,
Calendar._fields.BEGIN,
Calendar._fields.END
];

var sortOrder = android.provider.CalendarContract.Instances.BEGIN + " ASC, " + android.provider.CalendarContract.Instances.END + " ASC";
Expand Down Expand Up @@ -207,7 +212,10 @@ Calendar._findEvents = function(arg) {
calendar: {
id: cursor.getLong(cursor.getColumnIndex(Calendar._fields.CALENDAR.ID)),
name: cursor.getString(cursor.getColumnIndex(Calendar._fields.CALENDAR.NAME))
}
},
recurringRule: cursor.getString(cursor.getColumnIndex(Calendar._fields.RRULE)),
instanceBeginDate: new Date(cursor.getLong(cursor.getColumnIndex(Calendar._fields.BEGIN))),
instanceEndDate: new Date(cursor.getLong(cursor.getColumnIndex(Calendar._fields.END)))
};
events.push(event);
} while (cursor.moveToNext());
Expand Down
4 changes: 4 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,15 @@ declare module "nativescript-calendar" {
id: string;
title: string;
location: string;
notes: string;
url: string;
startDate: Date;
endDate: Date;
allDay: boolean;
calendar: Calendar;
instanceBeginDate: Date;
instanceEndDate: Date;
recurringRule: string;
/**
* iOS only.
*/
Expand Down

0 comments on commit 0991c6b

Please sign in to comment.