Skip to content

Commit

Permalink
Change Upload History Card UI
Browse files Browse the repository at this point in the history
  • Loading branch information
siddheshkothadi committed Sep 19, 2022
1 parent 762bd5e commit cbfa355
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,12 @@ fun UploadHistoryCard(
}
}
if(fish.latitude.isNotBlank() && fish.longitude.isNotBlank()) {
Button(onClick = {
IconButton(onClick = {
val gmmIntentUri = Uri.parse("geo:${fish.latitude},${fish.longitude}?q=${fish.latitude},${fish.longitude}")
val mapIntent = Intent(Intent.ACTION_VIEW, gmmIntentUri)
mapIntent.setPackage("com.google.android.apps.maps")
context.startActivity(mapIntent)
}, modifier = Modifier
.size(42.dp), shape = CircleShape,
contentPadding = PaddingValues(0.dp),) {
}) {
Icon(Icons.Filled.PinDrop, contentDescription = null)
}
}
Expand Down

0 comments on commit cbfa355

Please sign in to comment.