Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compass icon and map rotation get out-of-sync upon returning to OsmAnd (in "manually rotated" mode) #21904

Open
mnalis opened this issue Feb 14, 2025 · 1 comment

Comments

@mnalis
Copy link
Contributor

mnalis commented Feb 14, 2025

Description

When leaving the OsmAnd while it is in "manually rotated" mode with position different than North-is-up, upon leaving and returning to OsmAnd the compass icon and map orientation get out of sync, when it extremely confusing (i.e. compass claims North is up, while it actually isn't)

Here is example video of bug in action (upon returning to OsmAnd from launcher):

small_Screen_Recording_20250208_174727_OsmAnd.mp4

Steps to reproduce

  1. have OsmAnd in "manually rotated" mode (in "compass" icon)
  2. rotate map so North is not app
  3. (do other thins in the map?)
  4. switch to app launcher or recall some other app
  5. switch back to OsmAnd

Actual result

  1. notice that compass icon (still in "manually rotated" mode) shows that the North is directly up, but that the map is not actually rotated in that way
  2. click the compass icon, and notice that map actually rotates to correct (north-is-up) mode (even if it should do nothing if map were really pointing to the North)

Expected result

  • ideally, the map rotation is remembered after switching apps, so I'm returned to exact OsmAnd state (location/rotation) where I was, just like I never left OsmAnd

  • alternatively, if map is to reset to North automatically upon re-entering the OsmAnd, it should do so correctly (i.e. compass icon direction and actual map rotation should remain in sync, so pressing compass icon does nothing as both map and compass icon are already pointing to the North)

Your Environment (required)

OsmAnd Version: 4.9.10 (F-droid), also present in 4.9.7
Android version: 14
Device model: Samsung Galaxy S23+
Crash-Logs: no
@yuriiurshuliak
Copy link

We have tested the behavior in both the nightly and release versions, but we were unable to reproduce the bug.

To verify:

  1. Set OsmAnd to "manually rotated" mode using the compass icon.
  2. Rotate the map so that North is not pointing up (e.g., rotate to the west).
  3. Switch to another app (or go to the app launcher).
  4. Return to OsmAnd.
  5. Repeat the same procedure, but this time fully close the OsmAnd app (remove from recent apps) and reopen it.

Results: In both cases, the map rotation was remembered correctly, maintaining the previous state.

Could you please test the nightly version and let us know if the issue persists for you?
🔗 Nightly Builds.

Additionally, please note that we cannot guarantee behavior on F-Droid versions since they may have differences from our official releases.

OsmAnd~ 5.0.0#4390m, released: 2025-02-17

doc_2025-02-17_17-49-51.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants