diff --git a/app/src/main/java/com/kylecorry/trail_sense/tools/astronomy/ui/AstronomyFragment.kt b/app/src/main/java/com/kylecorry/trail_sense/tools/astronomy/ui/AstronomyFragment.kt index d4dd45286..0499fc9d0 100644 --- a/app/src/main/java/com/kylecorry/trail_sense/tools/astronomy/ui/AstronomyFragment.kt +++ b/app/src/main/java/com/kylecorry/trail_sense/tools/astronomy/ui/AstronomyFragment.kt @@ -390,7 +390,9 @@ class AstronomyFragment : BoundFragment() { val displayDate = binding.displayDate.date onDefault { - val items = producers.map { it.getListItem(displayDate, location, getDeclination()) } + val declination = if (!prefs.compass.useTrueNorth) getDeclination() else 0f + + val items = producers.map { it.getListItem(displayDate, location, declination) } onMain { binding.astronomyDetailList.setItems(items.filterNotNull())