[PR #3051] [PM-6552] Fix for Android Window issues when opening Autofill/Accessibility #3992

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

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

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

There are still several edge cases in which the app should try to execute the navigation after showing the HomePage and doesn't.
As an alternative we are trying to always try to Navigate when CreateWindow is launched on Android.

Code changes

Removed several of the Window Workarounds for Android. Now always relying on the AndroidNavigationRedirectPage
AndroidNavigationRedirectPage now more resilient to failure and navigates to HomePage as fallback.

  • App.xaml.cs: Removed a lot of the previous workarounds which should now be replaced with just using always AndroidNavigationRedirectPage
  • AndroidNavigationRedirectPage.xaml.cs: Made redirection a bit more resilient and with fallback to just Navigate to HomePage
  • AutofillSettingsPageViewModel.android.cs: Removed previous workaround for Accessibility Settings as it's no longer need
  • ResumeWindow.cs: AutofillWindow and MainWindow is no longer needed as we don't reuse or differentiate anymore

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/3051 **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 There are still several edge cases in which the app should try to execute the navigation after showing the HomePage and doesn't. As an alternative we are trying to always try to Navigate when `CreateWindow` is launched on Android. ## Code changes Removed several of the Window Workarounds for Android. Now always relying on the `AndroidNavigationRedirectPage` `AndroidNavigationRedirectPage` now more resilient to failure and navigates to HomePage as fallback. * **App.xaml.cs:** Removed a lot of the previous workarounds which should now be replaced with just using always `AndroidNavigationRedirectPage` * **AndroidNavigationRedirectPage.xaml.cs:** Made redirection a bit more resilient and with fallback to just Navigate to HomePage * **AutofillSettingsPageViewModel.android.cs:** Removed previous workaround for Accessibility Settings as it's no longer need * **ResumeWindow.cs:** `AutofillWindow` and `MainWindow` is no longer needed as we don't reuse or differentiate anymore ## 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:21 -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#3992