diff --git a/app/src/main/java/com/x8bit/bitwarden/data/platform/manager/di/PlatformManagerModule.kt b/app/src/main/java/com/x8bit/bitwarden/data/platform/manager/di/PlatformManagerModule.kt index 4bb8ee4b0..e41bcb532 100644 --- a/app/src/main/java/com/x8bit/bitwarden/data/platform/manager/di/PlatformManagerModule.kt +++ b/app/src/main/java/com/x8bit/bitwarden/data/platform/manager/di/PlatformManagerModule.kt @@ -64,6 +64,7 @@ import dagger.Provides import dagger.hilt.InstallIn import dagger.hilt.android.qualifiers.ApplicationContext import dagger.hilt.components.SingletonComponent +import kotlinx.coroutines.CoroutineScope import kotlinx.serialization.json.Json import java.time.Clock import javax.inject.Singleton @@ -206,8 +207,10 @@ object PlatformManagerModule { @Singleton fun provideNetworkConnectionManager( application: Application, + dispatcherManager: DispatcherManager, ): NetworkConnectionManager = NetworkConnectionManagerImpl( context = application.applicationContext, + externalScope = CoroutineScope(dispatcherManager.main) ) @Provides