mirror of
https://github.com/googlemaps/android-samples.git
synced 2025-12-08 18:02:20 +00:00
fix: force close in the camera demo activity (#796)
map object was not initialized, and it caused a crash in the sample app
This commit is contained in:
parent
a8d2281513
commit
56103f99e0
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user