Fix compilation

This commit is contained in:
ganfra 2023-10-20 20:26:04 +02:00
parent 4a24e1cd7e
commit fd63220ee0
3 changed files with 5 additions and 6 deletions

View file

@ -18,11 +18,10 @@ package io.element.android.features.lockscreen.impl.pin.model
import kotlinx.collections.immutable.ImmutableList
import kotlinx.collections.immutable.toPersistentList
import java.io.Serializable
data class PinEntry(
val digits: ImmutableList<PinDigit>,
): Serializable {
) {
companion object {
fun empty(size: Int): PinEntry {

View file

@ -20,6 +20,7 @@ import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableIntStateOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.setValue
import io.element.android.features.lockscreen.api.LockScreenStateService
@ -37,7 +38,7 @@ class PinUnlockPresenter @Inject constructor(
@Composable
override fun present(): PinUnlockState {
var pinEntry by rememberSaveable {
var pinEntry by remember {
mutableStateOf(PinEntry.empty(4))
}
var remainingAttempts by rememberSaveable {