Scottish-Tech-Army / Soundscape-Android

This is the source for an Android version of the original iOS Soundscape app
https://scottish-tech-army.github.io/Soundscape-Android/
Other
2 stars 2 forks source link

Home screen map loses context when settings or location details screen is displayed #136

Open davecraig opened 3 days ago

davecraig commented 3 days ago

To reproduce:

  1. Run the application
  2. Navigate to the Settings screen from the Menu drawer
  3. Return to the Home screen

The map is zoomed out to the world. Stopping and restarting the service by clicking on the location icon in the top right hand corner twice restores the map zoom and location.

The Home page map currently uses an Android compatibility view to wrap maplibre rendering in Jetpack compose. Moving to use a Jetpack compose maplibre library such as ramani-maps or maplibre-compose might be a good step, though those seem fairly early on in development.

FannyDemey commented 3 days ago

@davecraig i'll have a look at this one. It sounds like a lifecycle issue or something related to a recomposition of the screen that implies the reset of the map, that should not occur.