mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-02-16 20:00:40 +01:00
Use when
instead of else if
in Activity.kt
This commit is contained in:
parent
f2c8b0828d
commit
9f6ba77f98
@ -108,10 +108,9 @@ fun CheckFeatureLocked(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
LaunchedEffect(isOrWasThankYouInstalled) {
|
LaunchedEffect(isOrWasThankYouInstalled) {
|
||||||
if (!skipCheck && !isOrWasThankYouInstalled) {
|
when {
|
||||||
featureLockedAlertDialogState.show()
|
!skipCheck && !isOrWasThankYouInstalled -> featureLockedAlertDialogState.show()
|
||||||
} else if (isOrWasThankYouInstalled) {
|
isOrWasThankYouInstalled -> featureLockedAlertDialogState.hide()
|
||||||
featureLockedAlertDialogState.hide()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user