0
0
Fork 0
mirror of https://github.com/YTVanced/VancedMicroG synced 2024-11-28 06:03:00 +00:00

Mapbox: Fix crash when destroying maps

'setLocationSource' may be called with a null parameter:

E AndroidRuntime: Caused by: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter locationSource
E AndroidRuntime: at org.microg.gms.maps.mapbox.GoogleMapImpl.setLocationSource(Unknown Source:2)
This commit is contained in:
Vincent Vidal 2020-10-06 15:04:43 +02:00 committed by Marvin W
parent fed85b1ca4
commit 5b06366cd5

View file

@ -402,7 +402,7 @@ class GoogleMapImpl(private val context: Context, var options: GoogleMapOptions)
return null
}
override fun setLocationSource(locationSource: ILocationSourceDelegate) {
override fun setLocationSource(locationSource: ILocationSourceDelegate?) {
Log.d(TAG, "unimplemented Method: setLocationSource")
}