Skip to content

Commit

Permalink
fix: force close in the camera demo activity (#796)
Browse files Browse the repository at this point in the history
map object was not initialized, and it caused a crash in the sample app
  • Loading branch information
alishari committed Dec 15, 2021
1 parent a8d2281 commit 56103f9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ class CameraDemoActivity :
// [END_EXCLUDE]

override fun onMapReady(googleMap: GoogleMap) {
map = googleMap
// return early if the map was not initialised properly
with(googleMap) {
setOnCameraIdleListener(this@CameraDemoActivity)
Expand Down

0 comments on commit 56103f9

Please sign in to comment.