Skip to content

Commit

Permalink
Avoid setting camera with empty config
Browse files Browse the repository at this point in the history
  • Loading branch information
naftalibeder committed Sep 18, 2024
1 parent 67183ff commit 2f46a22
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ class CameraUpdateItem(
}
}
val map = mMap.get()
if (map == null) {
if (map == null || mCameraUpdate.center == null) {
isCameraActionCancelled = true
return
}

val animationOptions = MapAnimationOptions.Builder();

// animateCamera / easeCamera only allows positive duration
Expand Down

0 comments on commit 2f46a22

Please sign in to comment.