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

Map is rerendering each time with onResume #3208

Open
nijs9 opened this issue Feb 10, 2025 · 0 comments
Open

Map is rerendering each time with onResume #3208

nijs9 opened this issue Feb 10, 2025 · 0 comments
Labels

Comments

@nijs9
Copy link

nijs9 commented Feb 10, 2025

MapLibre Android Version

11.8.1

Android SDK Version

Android 14

Device

Nokia 4.2

What happened?

I'm loading a standard MapLibre map. Everything works well, but something strange is happening: if I put the app in the background (I open another app for a moment) and then bring it back to the foreground, onResume is called. However, after onResume the map is redrawn every time, even though onCreate is not called again. Is this normal behavior, and can it be prevented?

Steps to reproduce

  • Make a standard map
  • Send the app to the background
  • Open the app again so that onResume is triggered
  • The map is redrawn

Renderer

OpenGL (choose this if you are unsure)

Relevant log output

Additional context

No response

@nijs9 nijs9 added the android label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant