mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-18 23:05:26 +02:00
fix: Show content faster when no app lock is enabled
This commit is contained in:
parent
29d4e5a86a
commit
df820e59fd
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user