mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-19 07:15:25 +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
|
.value ?: return
|
||||||
|
|
||||||
// -1 = Unlocked, any other value = locked
|
// -1 = Unlocked, any other value = locked
|
||||||
var tries by remember { mutableIntStateOf(0) }
|
var tries by remember {
|
||||||
|
mutableIntStateOf(
|
||||||
LaunchedEffect(settings.isAppLockEnabled()) {
|
if (settings.isAppLockEnabled()) 0 else -1
|
||||||
if (!settings.isAppLockEnabled()) {
|
)
|
||||||
tries = -1
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tries == -1) {
|
if (tries == -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user