fix: prevent crash if no geopath is provided
This commit is contained in:
parent
515beefca6
commit
b6deb30fcf
1 changed files with 2 additions and 2 deletions
|
|
@ -147,8 +147,8 @@ fun App() {
|
|||
polylines.add(Polyline(polyline, colour))
|
||||
}
|
||||
}
|
||||
val bounds = buildBounds(allPoints)
|
||||
newCameraPosition = Pair(Point(0.0, 0.0), bounds)
|
||||
if (allPoints.isNotEmpty())
|
||||
newCameraPosition = Pair(Point(0.0, 0.0), buildBounds(allPoints))
|
||||
}
|
||||
|
||||
var sheetSwipeEnabled by remember { mutableStateOf(true) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue