Skip to content

Commit

Permalink
Update DirectionsFragment.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Altonss committed Jan 4, 2024
1 parent 1b09e8c commit b45882e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ class DirectionsFragment : TransportrFragment() {
viewModel.fromLocation.observe(viewLifecycleOwner, {
fromLocation.setLocation(it)
if (it != null) toLocation.requestFocus()
onLocationsChanged()
})
viewModel.fromLocation.observe(viewLifecycleOwner, { onLocationsChanged() })
viewModel.viaLocation.observe(viewLifecycleOwner, { viaLocation.setLocation(it) })
viewModel.toLocation.observe(viewLifecycleOwner, {
toLocation.setLocation(it)
Expand Down

0 comments on commit b45882e

Please sign in to comment.