1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 18:27:43 +00:00

Prevent crash

This commit is contained in:
M66B 2022-11-12 08:08:56 +01:00
parent a8d60bca60
commit d128c9284a

View file

@ -75,7 +75,6 @@ public class FragmentDialogCalendar extends FragmentDialogBase {
CalendarContract.Calendars.ACCOUNT_NAME + "," +
CalendarContract.Calendars.CALENDAR_DISPLAY_NAME
)) {
int colId = cursor.getColumnIndexOrThrow(CalendarContract.Calendars._ID);
int colAccount = cursor.getColumnIndexOrThrow(CalendarContract.Calendars.ACCOUNT_NAME);
int colType = cursor.getColumnIndexOrThrow(CalendarContract.Calendars.ACCOUNT_TYPE);
@ -92,6 +91,8 @@ public class FragmentDialogCalendar extends FragmentDialogBase {
if (account != null)
calendars.add(new Calendar(id, account, type, primary, visible, name));
}
} catch (Throwable ex) {
Log.e(ex);
}
int checkedItem = -1;