diff --git a/play-services-maps/core/hms/src/main/kotlin/org/microg/gms/maps/hms/GoogleMap.kt b/play-services-maps/core/hms/src/main/kotlin/org/microg/gms/maps/hms/GoogleMap.kt index 0f239266f2..ac3d0d1b33 100644 --- a/play-services-maps/core/hms/src/main/kotlin/org/microg/gms/maps/hms/GoogleMap.kt +++ b/play-services-maps/core/hms/src/main/kotlin/org/microg/gms/maps/hms/GoogleMap.kt @@ -909,6 +909,8 @@ class GoogleMapImpl(private val context: Context, var options: GoogleMapOptions) val newBundle = Bundle() mapView?.onSaveInstanceState(newBundle) outState.putAll(newBundle.toGms()) + // Here need to release the Mapview. Otherwise, the map cannot be loaded normally. + onDestroy() } fun getMapAsync(callback: IOnMapReadyCallback) {