microg / GmsCore

Free implementation of Play Services
https://microg.org
Apache License 2.0
8.71k stars 1.74k forks source link

Fix getMapAsync() for LiteGoogleMap #2531

Closed jonathanklee closed 2 months ago

jonathanklee commented 2 months ago

Spotify was crashing because of some lateinit property in Spotify snapshot ready callback was not initialized.

Looking at the condition we can observe that GmsCore was calling the snapshot ready callback when the snapshot was null, which does not make sense.

Inverting the logic and calling the callback when the snapshot was not null anymore fixed the issue and Spotify was able to display the snapshot.