Skip to content

Commit 33137ae

Browse files
committed
style: 함수 이름 명확하게 변경
1 parent 877e0fb commit 33137ae

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

presentation/src/main/java/com/stop/ui/route/RouteFragment.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class RouteFragment : Fragment() {
9999
navController.popBackStack(R.id.mapFragment, false)
100100
}
101101
binding.imageViewResearch.setOnClickListener {
102-
routeViewModel.getRoute()
102+
routeViewModel.patchRoute()
103103
}
104104
}
105105

@@ -163,7 +163,7 @@ class RouteFragment : Fragment() {
163163
requireArguments().clear()
164164

165165
if (args?.start != null || args?.end != null) {
166-
routeViewModel.getRoute()
166+
routeViewModel.patchRoute()
167167
}
168168
}
169169

presentation/src/main/java/com/stop/ui/route/RouteViewModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class RouteViewModel @Inject constructor(
5050
val isLoading: LiveData<Event<Boolean>>
5151
get() = _isLoading
5252

53-
fun getRoute(isShowError: Boolean = true) {
53+
fun patchRoute(isShowError: Boolean = true) {
5454
val originValue = _origin.value ?: let {
5555
if (!isShowError) {
5656
return
@@ -92,7 +92,7 @@ class RouteViewModel @Inject constructor(
9292
_origin.value = _destination.value.also {
9393
_destination.value = _origin.value
9494
}
95-
getRoute(false)
95+
patchRoute(false)
9696
}
9797

9898
fun calculateLastTransportTime(itinerary: Itinerary) {

0 commit comments

Comments
 (0)