Skip to content

Commit

Permalink
Fire an event when a navigation entity is selected while driving
Browse files Browse the repository at this point in the history
  • Loading branch information
dshokouhi committed Sep 13, 2024
1 parent 9d0ea80 commit fca524e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ class MapVehicleScreen(
)
.setOnClickListener {
Log.i(TAG, "${pair.first.entityId} clicked")
lifecycleScope.launch {
integrationRepository.fireEvent(
"android.navigation_started",
mapOf(
"entity_id" to pair.first.entityId
)
)
}
val intent = Intent(
CarContext.ACTION_NAVIGATE,
Uri.parse("geo:${pair.second[0]},${pair.second[1]}")
Expand Down

0 comments on commit fca524e

Please sign in to comment.