Zoom level and position is lost on orientation change
Issue #1
resolved
Steps to reproduce
- Start the application showing the map view
- Select a new or the same city from the list
- Pan and zoom somewhere
- Change to landscape
Expected
- Map view should show the same area as before
Result
- Map view is resetted to show the bounding box of the zone
Comments (4)
-
reporter -
-
assigned issue to
-
assigned issue to
-
- changed status to resolved
Restore map state after orientation change
Do not send the city change flag with the intent. When the orientation of the map changes, the map object gets recreated and the last intent is used again. In our case we received an city change flag even when we only changed the map orientation.
Fixes
#1→ <<cset 85ea07456215>>
-
Restore map state after orientation change
Do not send the city change flag with the intent. When the orientation of the map changes, the map object gets recreated and the last intent is used again. In our case we received an city change flag even when we only changed the map orientation.
Fixes
#1→ <<cset 5bfd46175af2>>
- Log in to comment
The reason seems to be that the bundle still contains the city name when the orientation changed.
See: MapFragment, line 173