mirror of
https://github.com/bitwarden/android.git
synced 2026-04-28 03:48:14 -05:00
Add Authenticator app-lock timeout (#6609)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user