Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,13 @@ internal class StreetViewPanoramaPropertiesNode(
panorama.setOnStreetViewPanoramaLongClickListener {
eventListeners.onLongClick(it)
}
// Both Java listener interfaces lack @NonNull, so GMS can deliver null. Guard the
// assignments to prevent the Kotlin compiler's implicit null-check from crashing.
panorama.setOnStreetViewPanoramaCameraChangeListener {
cameraPositionState.rawPanoramaCamera = it
it?.let { cameraPositionState.rawPanoramaCamera = it }
}
panorama.setOnStreetViewPanoramaChangeListener {
cameraPositionState.rawLocation = it
it?.let { cameraPositionState.rawLocation = it }
}
}

Expand Down