Skip to content

Commit 50412e1

Browse files
committed
fix : conflict 해결
1 parent a15a115 commit 50412e1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

presentation/src/main/java/com/stop/ui/mission/MissionFragment.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,12 @@ class MissionFragment : Fragment(), MissionHandler {
185185
}
186186
else -> {
187187
drawNowLocationLine(TMapPoint(userLocation.latitude, userLocation.longitude), TMapPoint(beforeLocation.latitude, beforeLocation.longitude))
188-
missionViewModel.personCurrentLocation = userLocation
188+
personCurrentLocation = userLocation
189189
if (tMap.isTracking) {
190190
tMap.tMapView.setCenterPoint(userLocation.latitude, userLocation.longitude)
191191
}
192192
beforeLocation = userLocation
193+
arriveDestination(userLocation.latitude, userLocation.longitude)
193194
}
194195
}
195196
}
@@ -203,10 +204,11 @@ class MissionFragment : Fragment(), MissionHandler {
203204
Marker.PERSON_MARKER_IMG,
204205
TMapPoint(nowLocation.latitude, nowLocation.longitude)
205206
)
206-
missionViewModel.personCurrentLocation = nowLocation
207+
personCurrentLocation = nowLocation
207208
latitudes.add(nowLocation.latitude)
208209
longitudes.add(nowLocation.longitude)
209210
setRouteDetailFocus()
211+
arriveDestination(nowLocation.latitude, nowLocation.longitude)
210212
}
211213
}
212214

@@ -226,7 +228,6 @@ class MissionFragment : Fragment(), MissionHandler {
226228
alarmSettingViewModel.getAlarm()
227229
val linePoints = arrayListOf<TMapPoint>()
228230
val walkInfo = alarmSettingViewModel.alarmItem.value?.routes?.first() as WalkRoute
229-
Log.d("MissionWorker", "route 그리기 ${alarmSettingViewModel.alarmItem.value?.routes?.first()}")
230231
tMap.drawWalkRoute(walkInfo, linePoints)
231232
tMap.drawWalkLines(linePoints, Marker.WALK_LINE, Marker.WALK_LINE_COLOR)
232233

0 commit comments

Comments
 (0)