Skip to content

Commit 09e8a7b

Browse files
bngshyonghanJu
andcommitted
🐛 #52 일시정지 버그 해결
Co-authored-by: yonghanJu <[email protected]>
1 parent 5359380 commit 09e8a7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

presentation/src/main/java/com/whyranoid/presentation/running/RunningActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ internal class RunningActivity :
136136

137137
private fun updatePathsOverlay(runningState: RunningState) {
138138
runningState.runningData.runningPositionList.let { runningPositionList ->
139-
for (index in paths.indices) {
139+
for (index in 0 until paths.size.coerceAtMost(runningPositionList.size)) {
140140
if (runningState.runningData.runningPositionList[index].size >= 2) {
141141
paths[index].coords =
142142
runningState.runningData.runningPositionList[index].map { it.toLatLng() }

0 commit comments

Comments
 (0)