-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Harden AndroidRendererFrontend::reduceMemoryUse #14622
Conversation
I'm not sure this check is enough. Check out this diff, which is still going to crash when we launch the map:
The pointer is initialized on GL thread in |
Can that also mean that we are misusing the |
… an active renderer
…reated by validating if mapboxMap isn't null when invoking MapView#onLowMemory
re. threadsafity, replaced hasSurface with AtomicBoolean to ensure thread safety. lmk if you feel another construct would be more appropriate here. re. |
Only allow invoking OnLowMemory with an active renderer.
Closes #14603