We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d887f9e commit c678118Copy full SHA for c678118
android/src/main/kotlin/com/mapbox/maps/mapbox_maps/ViewportController.kt
@@ -54,8 +54,10 @@ class ViewportController(
54
return
55
}
56
val transition = viewportPlugin.transitionFromFLTTransition(transitionStorage, cameraPlugin)
57
+ var callbackCopy: ((Result<Boolean>) -> Unit)? = callback
58
viewportPlugin.transitionTo(state, transition) { success ->
- callback(Result.success(success))
59
+ callbackCopy?.invoke(Result.success(success))
60
+ callbackCopy = null
61
62
} catch (error: Exception) {
63
logE("Viewport", "Could not create viewport state ouf of options: $stateStorage")
0 commit comments