Auto event: fixed null bind

pull/212/head
M66B 1 year ago
parent f1b6d6a80f
commit 3958f1ef95

@ -81,7 +81,9 @@ public class CalendarHelper {
" OR " + CalendarContract.Calendars.CALENDAR_DISPLAY_NAME + " = ?)"
: CalendarContract.Calendars.CALENDAR_DISPLAY_NAME + " = ?") +
" AND " + CalendarContract.Events.UID_2445 + " = ?",
new String[]{selectedAccount, selectedName, uid},
selectedName == null
? new String[]{selectedAccount, selectedAccount, uid}
: new String[]{selectedAccount, selectedName, uid},
null)) {
if (cursor.moveToNext())
return cursor.getLong(0);

Loading…
Cancel
Save