Skip to content

Commit 1abad20

Browse files
#153 calendarId null
1 parent 40b5cb8 commit 1abad20

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns="http://apache.org/cordova/ns/plugins/1.0"
44
xmlns:android="http://schemas.android.com/apk/res/android"
55
id="nl.x-services.plugins.calendar"
6-
version="4.3.0">
6+
version="4.3.1">
77

88
<name>Calendar</name>
99

src/android/nl/xservices/plugins/Calendar.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,7 @@ private boolean createEvent(JSONArray args) {
228228
argOptionsObject.isNull("secondReminderMinutes") ? null : argOptionsObject.getLong("secondReminderMinutes"),
229229
argOptionsObject.isNull("recurrence") ? null : argOptionsObject.getString("recurrence"),
230230
argOptionsObject.isNull("recurrenceEndTime") ? null : argOptionsObject.getLong("recurrenceEndTime"),
231-
argOptionsObject.isNull("calendarId") ? null : argOptionsObject.getInt("calendarId")
232-
);
231+
argOptionsObject.isNull("calendarId") ? 1 : argOptionsObject.getInt("calendarId"));
233232

234233
callback.success();
235234
return true;

0 commit comments

Comments
 (0)