Skip to content

Commit 27fc09b

Browse files
committed
Fix lint warning
1 parent 6e56c38 commit 27fc09b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vector/src/main/java/im/vector/app/SpaceStateHandlerImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class SpaceStateHandlerImpl @Inject constructor(
137137

138138
override fun popSpaceBackstack(): String? {
139139
vectorPreferences.getSpaceBackstack().toMutableList().apply {
140-
val poppedSpaceId = removeLast()
140+
val poppedSpaceId = removeAt(lastIndex)
141141
vectorPreferences.setSpaceBackstack(this)
142142
return poppedSpaceId
143143
}

vector/src/main/java/im/vector/app/features/pin/lockscreen/views/LockScreenCodeView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class LockScreenCodeView @JvmOverloads constructor(
9292
*/
9393
fun deleteLast(): Int {
9494
if (code.size == 0) return code.size
95-
code.removeLast()
95+
code.removeAt(code.lastIndex)
9696
getCodeView(code.size)?.toggle()
9797
return code.size
9898
}

0 commit comments

Comments
 (0)