Environment details
- library: com.google.maps.android:maps-compose:2.1.0
Steps to reproduce
- clone this repo
- add your google api key to the manifest file
- Quickly navigate between the bottom tabs and check if the maps is loaded properly
- When navigating quickly with the bottom tabs the maps wont restore its state eg. camera position, markers
Observation
The maps will load properly even if we navigate quickly on the bottom tabs when the starting route of nav host is the map to reproduce.
- Change the AnimatedNavHost start destination from
AnimatedNavHost(
navController = navController,
startDestination = Screen.Other.route
)
to
AnimatedNavHost(
navController = navController,
startDestination = Screen.Map.route
)
and it will work just fine.
Here is a sample video of the bug
Environment details
Steps to reproduce
Observation
The maps will load properly even if we navigate quickly on the bottom tabs when the starting route of nav host is the map to reproduce.
to
and it will work just fine.
Here is a sample video of the bug