mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 01:19:33 +00:00
Don't crash when sharing a location with no maptiler apikey (#919)
Related to: - https://github.com/vector-im/element-meta/issues/1682
This commit is contained in:
+4
-1
@@ -133,7 +133,10 @@ fun SendLocationView(
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
modifier = Modifier.clickable {
|
modifier = Modifier.clickable(
|
||||||
|
// target is null when the map hasn't loaded (or api key is wrong) so we disable the button
|
||||||
|
enabled = cameraPositionState.position.target != null
|
||||||
|
) {
|
||||||
state.eventSink(
|
state.eventSink(
|
||||||
SendLocationEvents.SendLocation(
|
SendLocationEvents.SendLocation(
|
||||||
cameraPosition = SendLocationEvents.SendLocation.CameraPosition(
|
cameraPosition = SendLocationEvents.SendLocation.CameraPosition(
|
||||||
|
|||||||
Reference in New Issue
Block a user