mirror of
https://github.com/bitwarden/android.git
synced 2026-05-30 16:43:22 -05:00
🍒[PM-21385] Defer feature flag check for Bitwarden account sync (#5246)
This commit is contained in:
@@ -156,6 +156,13 @@ internal class AuthenticatorBridgeManagerImpl(
|
||||
|
||||
if (!isBound) {
|
||||
mutableSharedAccountsStateFlow.value = AccountSyncState.Error
|
||||
} else if (mutableSharedAccountsStateFlow.value == AccountSyncState.AppNotInstalled) {
|
||||
// This scenario occurs when the Authenticator is installed before Bitwarden, because
|
||||
// `AppNotInstalled` is the initial state. Binding to the service simply means Bitwarden
|
||||
// is installed, but does not indicate whether syncing is enabled. When/if syncing is
|
||||
// toggled in Bitwarden, `onServiceConnected` will be invoked and the state
|
||||
// will be updated.
|
||||
mutableSharedAccountsStateFlow.value = AccountSyncState.SyncNotEnabled
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user