Skip to content

[MAPBOX] fix: missing Maps/Stadia api key app crashes#3552

Open
quimodotcom wants to merge 3 commits into
microg:masterfrom
quimodotcom:master
Open

[MAPBOX] fix: missing Maps/Stadia api key app crashes#3552
quimodotcom wants to merge 3 commits into
microg:masterfrom
quimodotcom:master

Conversation

@quimodotcom

Copy link
Copy Markdown

Fixes issue #3549.

Right now the code for the map part just assumes there is always going to be a valid api key. Without one it crashes some apps; Revolut is the one that this happens to for me as of Q1 2026 updates.

This pull request adds a fallback called DummyGoogleMapImpl and basically shows nothing instead.

The class acts like the real google map one but returns a blank frame layout. MapFragment and MapView were updated to check for keys and use the dummy when nothing is found. CreatorImpl also got changed in its get renderer type method so it returns zero without a key.

It seems like the goal is to make builds more stable when no map key was added. Some parts still feel a bit unclear about how it all connects though.

@quimodotcom quimodotcom changed the title Fix missing Maps/Stadia api key app crashes [MAPBOX] fix: missing Maps/Stadia api key app crashes Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant