File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
presentation/src/main/java/com/stop/ui/route Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ class RouteFragment : Fragment() {
99
99
navController.popBackStack(R .id.mapFragment, false )
100
100
}
101
101
binding.imageViewResearch.setOnClickListener {
102
- routeViewModel.getRoute ()
102
+ routeViewModel.patchRoute ()
103
103
}
104
104
}
105
105
@@ -163,7 +163,7 @@ class RouteFragment : Fragment() {
163
163
requireArguments().clear()
164
164
165
165
if (args?.start != null || args?.end != null ) {
166
- routeViewModel.getRoute ()
166
+ routeViewModel.patchRoute ()
167
167
}
168
168
}
169
169
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ class RouteViewModel @Inject constructor(
50
50
val isLoading: LiveData <Event <Boolean >>
51
51
get() = _isLoading
52
52
53
- fun getRoute (isShowError : Boolean = true) {
53
+ fun patchRoute (isShowError : Boolean = true) {
54
54
val originValue = _origin .value ? : let {
55
55
if (! isShowError) {
56
56
return
@@ -92,7 +92,7 @@ class RouteViewModel @Inject constructor(
92
92
_origin .value = _destination .value.also {
93
93
_destination .value = _origin .value
94
94
}
95
- getRoute (false )
95
+ patchRoute (false )
96
96
}
97
97
98
98
fun calculateLastTransportTime (itinerary : Itinerary ) {
You can’t perform that action at this time.
0 commit comments