Skip to content

Commit a63b44d

Browse files
committed
타겟 35 함수 충돌 이슈 대응
1 parent 7328236 commit a63b44d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/src/main/java/com/runnect/runnect/presentation/draw/DrawActivity.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -704,13 +704,13 @@ class DrawActivity : BindingActivity<ActivityDrawBinding>(R.layout.activity_draw
704704
}
705705

706706
private fun updateRouteMarkerData() {
707-
touchList.removeLast()
707+
touchList.removeAt(touchList.lastIndex)
708708
markerList.last().map = null
709-
markerList.removeLast()
709+
markerList.removeAt(markerList.lastIndex)
710710
}
711711

712712
private fun updateRouteLineData() {
713-
coords.removeLast()
713+
coords.removeAt(coords.lastIndex)
714714
if (coords.size >= LEAST_CONDITION_CREATE_PATH) {
715715
path.coords = coords
716716
path.map = naverMap
@@ -721,8 +721,8 @@ class DrawActivity : BindingActivity<ActivityDrawBinding>(R.layout.activity_draw
721721

722722
private fun reCalculateDistance() {
723723
if (calcDistanceList.isNotEmpty() && sumList.isNotEmpty()) {
724-
calcDistanceList.removeLast()
725-
sumList.removeLast()
724+
calcDistanceList.removeAt(calcDistanceList.lastIndex)
725+
sumList.removeAt(sumList.lastIndex)
726726
}
727727
}
728728

0 commit comments

Comments
 (0)