From b211a02445eecd5bbeee1bc688cf261083b28f93 Mon Sep 17 00:00:00 2001 From: Forrest Guice Date: Thu, 24 Sep 2020 19:48:38 -0700 Subject: [PATCH] moon apsis fix bug that prevents adding moon apsis calendar --- .../suntimeswidget/calendar/SuntimesCalendarTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/forrestguice/suntimeswidget/calendar/SuntimesCalendarTask.java b/app/src/main/java/com/forrestguice/suntimeswidget/calendar/SuntimesCalendarTask.java index 232bdbee..0b26d2d7 100644 --- a/app/src/main/java/com/forrestguice/suntimeswidget/calendar/SuntimesCalendarTask.java +++ b/app/src/main/java/com/forrestguice/suntimeswidget/calendar/SuntimesCalendarTask.java @@ -941,7 +941,7 @@ private boolean initMoonApsisCalendar(@NonNull CalendarTaskProgress progress0, @ cursor.moveToFirst(); while (!cursor.isAfterLast() && !isCancelled()) { - if (cursor.getColumnCount() <= 2 || cursor.getLong(0) <= 0) + if (cursor.getColumnCount() < 2 || cursor.getLong(0) <= 0) { // sanity check.. moonApsis needs provider v2:0.3.0 (Suntimes v0.12.0+)) cursor.close(); progress.setProgress(totalProgress, totalProgress, calendarTitle);