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 16, 2024
1 parent 5290700 commit 762c1e7
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 762c1e7

Please sign in to comment.