We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e18ef0f commit 712f650Copy full SHA for 712f650
sync/sync-store/src/main/java/com/duckduckgo/sync/store/SyncStore.kt
@@ -200,12 +200,16 @@ class SyncSharedPrefsStore(
200
setPrimaryKey(primaryKey)
201
setSecretKey(secretKey)
202
203
- isSignedInStateFlow.emit(true)
+ withContext(dispatcherProvider.io()) {
204
+ isSignedInStateFlow.emit(true)
205
+ }
206
}
207
208
override suspend fun clearAll() {
209
getEncryptedPreferences()?.edit(commit = true) { clear() }
- isSignedInStateFlow.emit(false)
210
211
+ isSignedInStateFlow.emit(false)
212
213
214
215
companion object {
0 commit comments