diff --git a/android/modules/calendar/src/java/ti/modules/titanium/calendar/EventProxy.java b/android/modules/calendar/src/java/ti/modules/titanium/calendar/EventProxy.java index e264d659cff..9ad71100316 100644 --- a/android/modules/calendar/src/java/ti/modules/titanium/calendar/EventProxy.java +++ b/android/modules/calendar/src/java/ti/modules/titanium/calendar/EventProxy.java @@ -560,12 +560,12 @@ public void setExtendedProperty(String name, String value) } @Kroll.method - public boolean remove(Object eventId) + public boolean remove() { ContentResolver contentResolver = TiApplication.getInstance().getContentResolver(); try { - Uri deleteUri = ContentUris.withAppendedId(CalendarContract.Events.CONTENT_URI, TiConvert.toInt(eventId)); + Uri deleteUri = ContentUris.withAppendedId(CalendarContract.Events.CONTENT_URI, TiConvert.toInt(id)); contentResolver.delete(deleteUri, null, null); } catch (IllegalArgumentException e) { return false;