[PR #3106] [PM-6798] Fix account switch on autofill #4029

Closed
opened 2025-11-26 23:39:48 -06:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/bitwarden/android/pull/3106

State: closed
Merged: Yes


Type of change

  • Bug fix
  • New feature development
  • Tech debt (refactoring, code cleanup, dependency upgrades, etc)
  • Build/deploy pipeline (DevOps)
  • Other

Objective

Fix account switching to work correctly on autofill, loading the latest state of the accounts.

Code changes

  • StateService: Added way to force reloading the state
  • CredentialProviderViewController: Made InitAppIfNeededAsync async to be able to force reloading the state when loading the extension and also on the several callbacks for actions on the extension.
  • Others: Also, ignored Fido2AuthenticatorException from logging them into AppCenter given they don't add any valuable logging if an exception is raised, and if that happens we log the problem in a different part of the code.

Before you submit

  • Please check for formatting errors (dotnet format --verify-no-changes) (required)
  • Please add unit tests where it makes sense to do so (encouraged but not required)
  • If this change requires a documentation update - notify the documentation team
  • If this change has particular deployment requirements - notify the DevOps team
**Original Pull Request:** https://github.com/bitwarden/android/pull/3106 **State:** closed **Merged:** Yes --- ## Type of change - [X] Bug fix - [ ] New feature development - [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc) - [ ] Build/deploy pipeline (DevOps) - [ ] Other ## Objective <!--Describe what the purpose of this PR is. For example: what bug you're fixing or what new feature you're adding--> Fix account switching to work correctly on autofill, loading the latest state of the accounts. ## Code changes <!--Explain the changes you've made to each file or major component. This should help the reviewer understand your changes--> <!--Also refer to any related changes or PRs in other repositories--> * **StateService:** Added way to force reloading the state * **CredentialProviderViewController:** Made `InitAppIfNeededAsync` async to be able to force reloading the state when loading the extension and also on the several callbacks for actions on the extension. * **Others:** Also, ignored `Fido2AuthenticatorException` from logging them into AppCenter given they don't add any valuable logging if an exception is raised, and if that happens we log the problem in a different part of the code. ## Before you submit - Please check for formatting errors (`dotnet format --verify-no-changes`) (required) - Please add **unit tests** where it makes sense to do so (encouraged but not required) - If this change requires a **documentation update** - notify the documentation team - If this change has particular **deployment requirements** - notify the DevOps team
GiteaMirror added the pull-request label 2025-11-26 23:39:48 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#4029