File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
presentation/src/main/java/com/stop/ui/route Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
package com.stop.ui.route
2
2
3
3
import androidx.lifecycle.ViewModel
4
+ import com.stop.domain.model.route.TransportLastTime
4
5
import com.stop.domain.model.route.tmap.custom.Itinerary
5
6
6
7
class ClickRouteViewModel : ViewModel () {
7
8
8
9
var clickRoute : Itinerary ? = null
9
- var lastTime = " 23:30:00"
10
+ var lastTimes: List <TransportLastTime ?>? = null
11
+ val lastTime = " 23:30:00"
10
12
11
13
}
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ class RouteFragment : Fragment() {
94
94
95
95
routeViewModel.lastTimeResponse.observe(viewLifecycleOwner) { event ->
96
96
event.getContentIfNotHandled()?.let { response ->
97
- routeViewModel .lastTimes = response.toMutableList()
97
+ clickRouteViewModel .lastTimes = response
98
98
binding.root.findNavController().navigate(R .id.action_routeFragment_to_routeDetailFragment)
99
99
}
100
100
}
You can’t perform that action at this time.
0 commit comments