Fix lint warning

This commit is contained in:
Benoit Marty 2025-07-09 10:01:03 +02:00 committed by Benoit Marty
parent 6e56c386db
commit 27fc09bb8a
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ class SpaceStateHandlerImpl @Inject constructor(
override fun popSpaceBackstack(): String? {
vectorPreferences.getSpaceBackstack().toMutableList().apply {
val poppedSpaceId = removeLast()
val poppedSpaceId = removeAt(lastIndex)
vectorPreferences.setSpaceBackstack(this)
return poppedSpaceId
}

View File

@ -92,7 +92,7 @@ class LockScreenCodeView @JvmOverloads constructor(
*/
fun deleteLast(): Int {
if (code.size == 0) return code.size
code.removeLast()
code.removeAt(code.lastIndex)
getCodeView(code.size)?.toggle()
return code.size
}