From 4a00941d6ff0eb88218ff53ff6bbccb098edbc11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikl=C3=B3s=20Fazekas?= Date: Tue, 13 Feb 2024 08:10:50 +0100 Subject: [PATCH] fix(android): initial centerCoordinate should apply --- .../java/com/rnmapbox/rnmbx/components/camera/RNMBXCamera.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCamera.kt b/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCamera.kt index dbd6d0b54..f642eecda 100644 --- a/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCamera.kt +++ b/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCamera.kt @@ -113,7 +113,7 @@ class RNMBXCamera(private val mContext: Context, private val mManager: RNMBXCame } } fun setStop(stop: CameraStop) { - if (stop.ts != mCameraStop?.ts) { + if ((stop.ts != mCameraStop?.ts) || (mCameraStop == null)) { mCameraStop = stop stop.setCallback(mCameraCallback) if (mMapView != null) {