Skip to content

Commit

Permalink
Fix radar compass path loading
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecorry31 committed Sep 9, 2023
1 parent 5ef7016 commit d9a28f3
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ class NavigatorFragment : BoundFragment<ActivityNavigatorBinding>() {
private val nearbyCount by lazy { userPrefs.navigation.numberOfVisibleBeacons }
private val nearbyDistance
get() = userPrefs.navigation.maxBeaconDistance
private var lastNearbyDistance: Float? = null
private val useRadarCompass by lazy { userPrefs.navigation.useRadarCompass }
private val lockScreenPresence by lazy { userPrefs.navigation.lockScreenPresence }
private val styleChooser by lazy { CompassStyleChooser(userPrefs.navigation, hasCompass) }
Expand Down Expand Up @@ -752,8 +751,7 @@ class NavigatorFragment : BoundFragment<ActivityNavigatorBinding>() {
updateAstronomyData()
}

if (useRadarCompass && lastNearbyDistance != nearbyDistance) {
lastNearbyDistance = nearbyDistance
if (useRadarCompass) {
val loadGeofence = Geofence(
gps.location,
Distance.meters(nearbyDistance + 10)
Expand Down

0 comments on commit d9a28f3

Please sign in to comment.