[PR #4728] [MERGED] [PM-17882] Cannot select autofill after creating new login #5162

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

📋 Pull Request Information

Original PR: https://github.com/bitwarden/android/pull/4728
Author: @andrebispo5
Created: 2/17/2025
Status: Merged
Merged: 2/18/2025
Merged by: @andrebispo5

Base: mainHead: pm-17882/cannot-select-autofill


📝 Commits (4)

  • e9ae2fa [PM-17882] Add condition to not clear special circumstance on create cipher
  • a89e991 [PM-17882] Fix default value
  • 4fa0b44 [PM-17882] Test special circumstance not getting erased after item creation for autofill selection
  • 5a89223 Merge branch 'main' into pm-17882/cannot-select-autofill

📊 Changes

2 files changed (+64 additions, -1 deletions)

View changed files

📝 app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/addedit/VaultAddEditViewModel.kt (+5 -1)
📝 app/src/test/java/com/x8bit/bitwarden/ui/vault/feature/addedit/VaultAddEditViewModelTest.kt (+59 -0)

📄 Description

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-17882

📔 Objective

Fix bug:
When the user created a new cipher using the autofill selection, it would clear the special circumstance and immediately close the VaultItemListingScreen, showing the vault instead.

Added condition to not clear the special circumstance on cipher create if it is a AutofillSelectionData.

📸 Screenshots

https://github.com/user-attachments/assets/878a10d5-1a83-4d3e-83c0-42e05c41f678

Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed
    issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bitwarden/android/pull/4728 **Author:** [@andrebispo5](https://github.com/andrebispo5) **Created:** 2/17/2025 **Status:** ✅ Merged **Merged:** 2/18/2025 **Merged by:** [@andrebispo5](https://github.com/andrebispo5) **Base:** `main` ← **Head:** `pm-17882/cannot-select-autofill` --- ### 📝 Commits (4) - [`e9ae2fa`](https://github.com/bitwarden/android/commit/e9ae2fa99d36fdc75e86c73f72c3d410c061a326) [PM-17882] Add condition to not clear special circumstance on create cipher - [`a89e991`](https://github.com/bitwarden/android/commit/a89e9912b380c870dcd7fd09c5defa5d191f5a5d) [PM-17882] Fix default value - [`4fa0b44`](https://github.com/bitwarden/android/commit/4fa0b4402fdde0db39c54727d857c332501a2f87) [PM-17882] Test special circumstance not getting erased after item creation for autofill selection - [`5a89223`](https://github.com/bitwarden/android/commit/5a89223f59320821ed938bc5ee30d0aeea08c672) Merge branch 'main' into pm-17882/cannot-select-autofill ### 📊 Changes **2 files changed** (+64 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/addedit/VaultAddEditViewModel.kt` (+5 -1) 📝 `app/src/test/java/com/x8bit/bitwarden/ui/vault/feature/addedit/VaultAddEditViewModelTest.kt` (+59 -0) </details> ### 📄 Description ## 🎟️ Tracking <!-- Paste the link to the Jira or GitHub issue or otherwise describe / point to where this change is coming from. --> https://bitwarden.atlassian.net/browse/PM-17882 ## 📔 Objective <!-- Describe what the purpose of this PR is, for example what bug you're fixing or new feature you're adding. --> Fix bug: When the user created a new cipher using the autofill selection, it would clear the special circumstance and immediately close the `VaultItemListingScreen`, showing the vault instead. Added condition to not clear the special circumstance on cipher create if it is a `AutofillSelectionData`. ## 📸 Screenshots <!-- Required for any UI changes; delete if not applicable. Use fixed width images for better display. --> https://github.com/user-attachments/assets/878a10d5-1a83-4d3e-83c0-42e05c41f678 ## ⏰ Reminders before review - Contributor guidelines followed - All formatters and local linters executed and passed - Written new unit and / or integration tests where applicable - Used internationalization (i18n) for all UI strings - CI builds passed - Communicated to DevOps any deployment requirements - Updated any necessary documentation or informed the documentation team ## 🦮 Reviewer guidelines <!-- Suggested interactions but feel free to use (or not) as you desire! --> - 👍 (`:+1:`) or similar for great changes - 📝 (`:memo:`) or ℹ️ (`:information_source:`) for notes or general info - ❓ (`:question:`) for questions - 🤔 (`:thinking:`) or 💭 (`:thought_balloon:`) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion - 🎨 (`:art:`) for suggestions / improvements - ❌ (`:x:`) or ⚠️ (`:warning:`) for more significant problems or concerns needing attention - 🌱 (`:seedling:`) or ♻️ (`:recycle:`) for future improvements or indications of technical debt - ⛏ (`:pick:`) for minor or nitpick changes --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-26 23:54:54 -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#5162