Skip to content

Commit

Permalink
moon apsis
Browse files Browse the repository at this point in the history
fix bug that prevents adding moon apsis calendar
  • Loading branch information
forrestguice committed Sep 25, 2020
1 parent 88b9706 commit b211a02
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b211a02

Please sign in to comment.