[PR #3791] [CLOSED] [PM-11216] Lock and clear clipboard on app exit #4422

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

📋 Pull Request Information

Original PR: https://github.com/bitwarden/android/pull/3791
Author: @MauroGuida
Created: 8/20/2024
Status: Closed

Base: mainHead: main


📝 Commits (1)

  • d290ca5 feat: implement lock and clear clipboard on app exit

📊 Changes

3 files changed (+21 additions, -9 deletions)

View changed files

📝 app/src/main/java/com/x8bit/bitwarden/data/platform/manager/clipboard/BitwardenClipboardManager.kt (+6 -0)
📝 app/src/main/java/com/x8bit/bitwarden/data/platform/manager/clipboard/BitwardenClipboardManagerImpl.kt (+13 -9)
📝 app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/vault/VaultViewModel.kt (+2 -0)

📄 Description

🎟️ Tracking

N/A

📔 Objective

This PR aims to make the exit button in the drop-down menu on the vault page more functional. Currently, when the exit option is selected, the app is merely sent to the background. With this PR, the exit button will lock the vault and clear the clipboard. This enhancement is particularly useful for users like myself who copy content from notes that are not automatically cleared by the 'Clear Clipboard' setting, because the text is copied using Android's text selection rather than the Bitwarden copy button.

📸 Screenshots

N/A

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/3791 **Author:** [@MauroGuida](https://github.com/MauroGuida) **Created:** 8/20/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`d290ca5`](https://github.com/bitwarden/android/commit/d290ca5c81092854b8b86467f20e9a7cc9360ddd) feat: implement lock and clear clipboard on app exit ### 📊 Changes **3 files changed** (+21 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `app/src/main/java/com/x8bit/bitwarden/data/platform/manager/clipboard/BitwardenClipboardManager.kt` (+6 -0) 📝 `app/src/main/java/com/x8bit/bitwarden/data/platform/manager/clipboard/BitwardenClipboardManagerImpl.kt` (+13 -9) 📝 `app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/vault/VaultViewModel.kt` (+2 -0) </details> ### 📄 Description ## 🎟️ Tracking N/A ## 📔 Objective This PR aims to make the exit button in the drop-down menu on the vault page more functional. Currently, when the exit option is selected, the app is merely sent to the background. With this PR, the exit button will lock the vault and clear the clipboard. This enhancement is particularly useful for users like myself who copy content from notes that are not automatically cleared by the 'Clear Clipboard' setting, because the text is copied using Android's text selection rather than the Bitwarden copy button. ## 📸 Screenshots N/A ## ⏰ 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:44:16 -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#4422