File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
presentation/src/main/java/com/stop/ui/mission Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -107,9 +107,7 @@ class MissionViewModel @Inject constructor(
107
107
private fun getBusNowLocation () {
108
108
viewModelScope.launch {
109
109
while (TIME_TEST < 60 ) {
110
- getBusNowLocationUseCase(TEST_BUS_540_ID ).apply {
111
- _busNowLocationInfo .value = this
112
- }
110
+ this @MissionViewModel._busNowLocationInfo .value = getBusNowLocationUseCase(TEST_BUS_540_ID )
113
111
delay(5000 )
114
112
TIME_TEST + = 1
115
113
}
@@ -134,7 +132,7 @@ class MissionViewModel @Inject constructor(
134
132
private fun getSubwayRoute () {
135
133
viewModelScope.launch {
136
134
val startLocation = getNowStationLocation()
137
- getSubwayRouteUseCase(
135
+ this @MissionViewModel. _subwayRoute .value = getSubwayRouteUseCase(
138
136
RouteRequest (
139
137
startLocation.longitude,
140
138
startLocation.latitude,
@@ -144,9 +142,7 @@ class MissionViewModel @Inject constructor(
144
142
TEST_SUBWAY_NUMER .toString() + LINE ,
145
143
startSubwayStation.dropLast(1 ), // "역" 버리기
146
144
TEST_END_SUBWAY_STATION
147
- ).apply {
148
- _subwayRoute .value = this
149
- }
145
+ )
150
146
}
151
147
}
152
148
You can’t perform that action at this time.
0 commit comments