Skip to content

Commit 56103f9

Browse files
authored
fix: force close in the camera demo activity (#796)
map object was not initialized, and it caused a crash in the sample app
1 parent a8d2281 commit 56103f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ApiDemos/kotlin/app/src/gms/java/com/example/kotlindemos/CameraDemoActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ class CameraDemoActivity :
104104
// [END_EXCLUDE]
105105

106106
override fun onMapReady(googleMap: GoogleMap) {
107+
map = googleMap
107108
// return early if the map was not initialised properly
108109
with(googleMap) {
109110
setOnCameraIdleListener(this@CameraDemoActivity)

0 commit comments

Comments
 (0)