mirror of
https://github.com/bitwarden/android.git
synced 2026-05-06 15:58:22 -05:00
PM-34193: bug: Unlock vault from Never-Lock should be on io thread (#6727)
This commit is contained in:
@@ -98,6 +98,7 @@ class VaultLockManagerImpl(
|
||||
context: Context,
|
||||
) : VaultLockManager {
|
||||
private val unconfinedScope = CoroutineScope(dispatcherManager.unconfined)
|
||||
private val ioScope = CoroutineScope(dispatcherManager.io)
|
||||
|
||||
/**
|
||||
* This [Map] tracks all active timeout [Job]s that are running and their associated data using
|
||||
@@ -478,7 +479,7 @@ class VaultLockManagerImpl(
|
||||
.map { userId -> vaultTimeoutChangesForUserFlow(userId = userId) }
|
||||
.merge()
|
||||
}
|
||||
.launchIn(unconfinedScope)
|
||||
.launchIn(ioScope)
|
||||
}
|
||||
|
||||
private fun observeUserLogoutResults() {
|
||||
|
||||
Reference in New Issue
Block a user