Skip to content

Commit

Permalink
Fix declination on astronomy
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecorry31 committed Apr 7, 2024
1 parent 6b06d46 commit ce33945
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,9 @@ class AstronomyFragment : BoundFragment<ActivityAstronomyBinding>() {
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())
Expand Down

0 comments on commit ce33945

Please sign in to comment.