We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5359380 commit 09e8a7bCopy full SHA for 09e8a7b
presentation/src/main/java/com/whyranoid/presentation/running/RunningActivity.kt
@@ -136,7 +136,7 @@ internal class RunningActivity :
136
137
private fun updatePathsOverlay(runningState: RunningState) {
138
runningState.runningData.runningPositionList.let { runningPositionList ->
139
- for (index in paths.indices) {
+ for (index in 0 until paths.size.coerceAtMost(runningPositionList.size)) {
140
if (runningState.runningData.runningPositionList[index].size >= 2) {
141
paths[index].coords =
142
runningState.runningData.runningPositionList[index].map { it.toLatLng() }
0 commit comments