Loading .gitignore +5 −0 Original line number Diff line number Diff line Loading @@ -7,3 +7,8 @@ build/ user.gradle local.properties .directory bin/ .project .classpath .output/ .settings/ GmsApi @ c6448e7c Compare 09bf9494 to c6448e7c Original line number Diff line number Diff line Subproject commit 09bf9494038ab53e0b86d8699db409b955fe3c0c Subproject commit c6448e7c55ff95c49a6affe2e514ef96b0a30bf3 play-services-maps-core-mapbox/src/main/kotlin/org/microg/gms/maps/mapbox/GoogleMap.kt +17 −2 Original line number Diff line number Diff line Loading @@ -210,6 +210,11 @@ class GoogleMapImpl(private val context: Context, var options: GoogleMapOptions) override fun stopAnimation() = map?.cancelTransitions() ?: Unit override fun setMapStyle(options: MapStyleOptions?): Boolean { Log.d(TAG, "setMapStyle options: " + options?.getJson()) return true } override fun setMinZoomPreference(minZoom: Float) { map?.setMinZoomPreference(minZoom.toDouble() - 1) } Loading Loading @@ -678,23 +683,33 @@ class GoogleMapImpl(private val context: Context, var options: GoogleMapOptions) override fun onResume() = mapView?.onResume() ?: Unit override fun onPause() = mapView?.onPause() ?: Unit override fun onDestroy() { Log.d(TAG, "destroy"); Log.d(TAG, "destroy") circleManager?.onDestroy() circleManager = null lineManager?.onDestroy() lineManager = null fillManager?.onDestroy() fillManager = null symbolManager?.onDestroy() symbolManager = null pendingMarkers.clear() markers.clear() BitmapDescriptorFactoryImpl.unregisterMap(map) view.removeView(mapView) // TODO can crash? mapView?.onDestroy() mapView = null map = null // Don't make it null; this object is not deleted immediately, and it may want to access map.* stuff //map = null created = false initialized = false loaded = false Loading play-services-maps-core-mapbox/src/main/kotlin/org/microg/gms/maps/mapbox/MapView.kt +1 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ class MapViewImpl(private val context: Context, options: GoogleMapOptions?) : IM override fun onResume() = map?.onResume() ?: Unit override fun onPause() = map?.onPause() ?: Unit override fun onDestroy() { Log.d(TAG, "destroy") map?.onDestroy() map = null } Loading play-services-maps-core-vtm/src/main/java/org/microg/gms/maps/vtm/GoogleMapImpl.java +7 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,7 @@ import com.google.android.gms.maps.model.CircleOptions; import com.google.android.gms.maps.model.GroundOverlayOptions; import com.google.android.gms.maps.model.LatLngBounds; import com.google.android.gms.maps.model.MarkerOptions; import com.google.android.gms.maps.model.MapStyleOptions; import com.google.android.gms.maps.model.PolygonOptions; import com.google.android.gms.maps.model.PolylineOptions; import com.google.android.gms.maps.model.TileOverlayOptions; Loading Loading @@ -210,6 +211,12 @@ public class GoogleMapImpl extends IGoogleMapDelegate.Stub } @Override public boolean setMapStyle(MapStyleOptions options) throws RemoteException { Log.d(TAG, "unimplemented Method: setMapStyle"); return true; } @Override public void setMinZoomPreference(float minZoom) throws RemoteException { Log.d(TAG, "unimplemented Method: setMinZoomPreference"); Loading Loading
.gitignore +5 −0 Original line number Diff line number Diff line Loading @@ -7,3 +7,8 @@ build/ user.gradle local.properties .directory bin/ .project .classpath .output/ .settings/
GmsApi @ c6448e7c Compare 09bf9494 to c6448e7c Original line number Diff line number Diff line Subproject commit 09bf9494038ab53e0b86d8699db409b955fe3c0c Subproject commit c6448e7c55ff95c49a6affe2e514ef96b0a30bf3
play-services-maps-core-mapbox/src/main/kotlin/org/microg/gms/maps/mapbox/GoogleMap.kt +17 −2 Original line number Diff line number Diff line Loading @@ -210,6 +210,11 @@ class GoogleMapImpl(private val context: Context, var options: GoogleMapOptions) override fun stopAnimation() = map?.cancelTransitions() ?: Unit override fun setMapStyle(options: MapStyleOptions?): Boolean { Log.d(TAG, "setMapStyle options: " + options?.getJson()) return true } override fun setMinZoomPreference(minZoom: Float) { map?.setMinZoomPreference(minZoom.toDouble() - 1) } Loading Loading @@ -678,23 +683,33 @@ class GoogleMapImpl(private val context: Context, var options: GoogleMapOptions) override fun onResume() = mapView?.onResume() ?: Unit override fun onPause() = mapView?.onPause() ?: Unit override fun onDestroy() { Log.d(TAG, "destroy"); Log.d(TAG, "destroy") circleManager?.onDestroy() circleManager = null lineManager?.onDestroy() lineManager = null fillManager?.onDestroy() fillManager = null symbolManager?.onDestroy() symbolManager = null pendingMarkers.clear() markers.clear() BitmapDescriptorFactoryImpl.unregisterMap(map) view.removeView(mapView) // TODO can crash? mapView?.onDestroy() mapView = null map = null // Don't make it null; this object is not deleted immediately, and it may want to access map.* stuff //map = null created = false initialized = false loaded = false Loading
play-services-maps-core-mapbox/src/main/kotlin/org/microg/gms/maps/mapbox/MapView.kt +1 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ class MapViewImpl(private val context: Context, options: GoogleMapOptions?) : IM override fun onResume() = map?.onResume() ?: Unit override fun onPause() = map?.onPause() ?: Unit override fun onDestroy() { Log.d(TAG, "destroy") map?.onDestroy() map = null } Loading
play-services-maps-core-vtm/src/main/java/org/microg/gms/maps/vtm/GoogleMapImpl.java +7 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,7 @@ import com.google.android.gms.maps.model.CircleOptions; import com.google.android.gms.maps.model.GroundOverlayOptions; import com.google.android.gms.maps.model.LatLngBounds; import com.google.android.gms.maps.model.MarkerOptions; import com.google.android.gms.maps.model.MapStyleOptions; import com.google.android.gms.maps.model.PolygonOptions; import com.google.android.gms.maps.model.PolylineOptions; import com.google.android.gms.maps.model.TileOverlayOptions; Loading Loading @@ -210,6 +211,12 @@ public class GoogleMapImpl extends IGoogleMapDelegate.Stub } @Override public boolean setMapStyle(MapStyleOptions options) throws RemoteException { Log.d(TAG, "unimplemented Method: setMapStyle"); return true; } @Override public void setMinZoomPreference(float minZoom) throws RemoteException { Log.d(TAG, "unimplemented Method: setMinZoomPreference"); Loading