Skip to content

Commit

Permalink
fix: remove eventId parameter, use inner ID
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Jul 7, 2024
1 parent 0d5cfe2 commit 904597f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 904597f

Please sign in to comment.