Add Authenticator app-lock timeout (#6609)

This commit is contained in:
David Perez
2026-03-03 14:14:35 -06:00
committed by GitHub
parent d0dc4200f8
commit cf1455a45a
20 changed files with 957 additions and 54 deletions

View File

@@ -9,10 +9,12 @@ import kotlinx.coroutines.flow.asStateFlow
/**
* A faked implementation of [AppStateManager]
*/
class FakeAppStateManager : AppStateManager {
private val mutableAppCreationStateFlow =
MutableStateFlow<AppCreationState>(AppCreationState.Destroyed)
private val mutableAppForegroundStateFlow = MutableStateFlow(AppForegroundState.BACKGROUNDED)
class FakeAppStateManager(
appForegroundState: AppForegroundState = AppForegroundState.BACKGROUNDED,
appCreationState: AppCreationState = AppCreationState.Destroyed,
) : AppStateManager {
private val mutableAppCreationStateFlow = MutableStateFlow(appCreationState)
private val mutableAppForegroundStateFlow = MutableStateFlow(appForegroundState)
override val appCreatedStateFlow: StateFlow<AppCreationState>
get() = mutableAppCreationStateFlow.asStateFlow()