mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2024-12-24 11:45:50 +01:00
Don't null a param which is still used, stub for missing function. Fixes #1126.
This commit is contained in:
parent
a22a366797
commit
5839489b1c
@ -223,6 +223,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)
|
||||
}
|
||||
@ -719,7 +724,10 @@ class GoogleMapImpl(private val context: Context, var options: GoogleMapOptions)
|
||||
// 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
|
||||
|
@ -60,6 +60,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;
|
||||
@ -211,6 +212,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…
Reference in New Issue
Block a user