File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
presentation/src/main/java/com/whyranoid/presentation/running Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -135,10 +135,14 @@ internal class RunningActivity :
135
135
}
136
136
137
137
private fun updatePathsOverlay (runningState : RunningState ) {
138
- if (runningState.runningData.runningPositionList.last().size >= 2 ) {
139
- paths.last().coords =
140
- runningState.runningData.runningPositionList.last().map { it.toLatLng() }
141
- paths.last().map = naverMap
138
+ runningState.runningData.runningPositionList.let { runningPositionList ->
139
+ for (index in paths.indices) {
140
+ if (runningState.runningData.runningPositionList[index].size >= 2 ) {
141
+ paths[index].coords =
142
+ runningState.runningData.runningPositionList[index].map { it.toLatLng() }
143
+ paths[index].map = naverMap
144
+ }
145
+ }
142
146
}
143
147
}
144
148
You can’t perform that action at this time.
0 commit comments