Skip to content

Commit

Permalink
Merge pull request #3166 from smichel17/gps-bugs
Browse files Browse the repository at this point in the history
Fix gps-related bugs
  • Loading branch information
westnordost authored Aug 22, 2021
2 parents a82bbe9 + 48c1797 commit 0ca3031
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ class MainFragment : Fragment(R.layout.fragment_main),
// Camera cannot rotate upside down => full circle check not needed
val isFlat = mapFragment.cameraPosition?.tilt?.let { it <= margin } ?: false

if (mapFragment.isFollowingPosition) {
if (mapFragment.isFollowingPosition && mapFragment.displayedLocation != null) {
setIsCompassMode(!mapFragment.isCompassMode)
} else {
if (isNorthUp) {
Expand Down

0 comments on commit 0ca3031

Please sign in to comment.