fix: Show content faster when no app lock is enabled

This commit is contained in:
Myzel394 2024-01-01 14:55:30 +01:00
parent 29d4e5a86a
commit df820e59fd
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B

View File

@ -56,12 +56,10 @@ fun AsLockedApp(
.value ?: return
// -1 = Unlocked, any other value = locked
var tries by remember { mutableIntStateOf(0) }
LaunchedEffect(settings.isAppLockEnabled()) {
if (!settings.isAppLockEnabled()) {
tries = -1
}
var tries by remember {
mutableIntStateOf(
if (settings.isAppLockEnabled()) 0 else -1
)
}
if (tries == -1) {