From e44cfe16d59761d8b32861a9c1a160c8b68d972e Mon Sep 17 00:00:00 2001 From: Hinton Date: Thu, 24 Oct 2024 14:29:30 -0700 Subject: [PATCH] Fix --- .../bitwarden/data/vault/manager/di/VaultManagerModule.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/x8bit/bitwarden/data/vault/manager/di/VaultManagerModule.kt b/app/src/main/java/com/x8bit/bitwarden/data/vault/manager/di/VaultManagerModule.kt index b6b85c613..ea0054946 100644 --- a/app/src/main/java/com/x8bit/bitwarden/data/vault/manager/di/VaultManagerModule.kt +++ b/app/src/main/java/com/x8bit/bitwarden/data/vault/manager/di/VaultManagerModule.kt @@ -26,6 +26,7 @@ import dagger.Provides import dagger.hilt.InstallIn import dagger.hilt.android.qualifiers.ApplicationContext import dagger.hilt.components.SingletonComponent +import kotlinx.coroutines.CoroutineScope import java.time.Clock import javax.inject.Singleton @@ -45,7 +46,8 @@ object VaultManagerModule { authDiskSource: AuthDiskSource, fileManager: FileManager, clock: Clock, - networkConnectionManager: NetworkConnectionManager + networkConnectionManager: NetworkConnectionManager, + dispatcherManager: DispatcherManager ): CipherManager = CipherManagerImpl( fileManager = fileManager, authDiskSource = authDiskSource, @@ -53,7 +55,8 @@ object VaultManagerModule { vaultDiskSource = vaultDiskSource, vaultSdkSource = vaultSdkSource, clock = clock, - networkConnectionManager = networkConnectionManager + networkConnectionManager = networkConnectionManager, + externalScope = CoroutineScope(dispatcherManager.main) ) @Provides