LockScreen : avoid removing from composition the LoggedInFlowNode.Children when LockScreen is displayed.
This commit is contained in:
parent
33534195ba
commit
97bbc37f6c
4 changed files with 32 additions and 57 deletions
|
|
@ -44,6 +44,12 @@ interface LockScreenService {
|
|||
fun isPinSetup(): Flow<Boolean>
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the app is currently locked.
|
||||
*/
|
||||
val LockScreenService.isLocked: Boolean
|
||||
get() = lockState.value == LockScreenLockState.Locked
|
||||
|
||||
/**
|
||||
* Makes sure the secure flag is set on the activity if the pin is setup.
|
||||
* @param activity the activity to set the flag on.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue