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

com.google.maps.android.compose.GoogleMap recomposes when used alongside shared elements that use .sharedBounds() #633

Open
iamutkarshtiwari opened this issue Oct 4, 2024 · 0 comments
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@iamutkarshtiwari
Copy link

iamutkarshtiwari commented Oct 4, 2024

Please be sure to include as much information as possible:

Environment details

  1. OS type and version: Android 14
  2. Library version:
composeMapWidgets = "com.google.maps.android:maps-compose-widgets:3.1.1"
composeMapsUtils = "com.google.maps.android:maps-compose-utils:3.1.1"
composeMaps = "com.google.maps.android:maps-compose:3.1.1"

Steps to reproduce

  1. Replace the value of com.google.android.geo.API_KEY in manifest file.
  2. Run the app and tap the red box.
  3. The box should transition to a second screen and turn into a yellow box spanning whole screen width.
  4. Return back to the previous screen by swipe inwards from the left edge or by pressing back button
  5. The yellow box transitions back to its original location and transforms into the red box.
  6. Notice how the GoogleMap composable flashes and refreshes itself.
google.map.bug.mp4
Expectation

GoogleMap should not recompose or refresh itself when using shared elements transition in Compose

Minimal Repro

Here is the link to the minimal repro.
Github doesn't allow file size above 25Mb so I couldn't attach the project zip here.

I have also filed a ticket in Google bugtracker as well for the compose animation team to look into.

@iamutkarshtiwari iamutkarshtiwari added triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

1 participant