Skip to content

Commit

Permalink
Hide share-charge-location-button if there's no URL for the location
Browse files Browse the repository at this point in the history
  • Loading branch information
robho committed Dec 4, 2024
1 parent 6c15446 commit 1f8d75f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/net/vonforst/evmap/fragment/MapFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,8 @@ class MapFragment : Fragment(), OnMapReadyCallback, MenuProvider {
markerManager = MarkerManager(context, map, this).apply {
onChargerClick = {
vm.chargerSparse.value = it
binding.detailAppBar.toolbar.menu.findItem(R.id.menu_share).isVisible =
it.url != null
}
onClusterClick = {
val newZoom = map.cameraPosition.zoom + 2
Expand Down

0 comments on commit 1f8d75f

Please sign in to comment.