[PR #1658] [MERGED] Add workaround to Android entry renderer #3035

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

📋 Pull Request Information

Original PR: https://github.com/bitwarden/android/pull/1658
Author: @jlf0dev
Created: 11/22/2021
Status: Merged
Merged: 11/23/2021
Merged by: @jlf0dev

Base: masterHead: bug/android-11-clipboard


📝 Commits (1)

  • 99507b3 Add workaround to Android entry renderer

📊 Changes

1 file changed (+10 additions, -1 deletions)

View changed files

📝 src/Android/Renderers/CustomEntryRenderer.cs (+10 -1)

📄 Description

Type of change

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

Objective

Android has a known bug preventing the copy/paste functionality on a TextView inside a scrollable RecyclerView: https://issuetracker.google.com/issues/37095917

While running on Android 11, Bitwarden entry fields are encountering the same problem. After loading a page with entry fields, you can't long-press to show copy/paste menu unless you first input text.

This workaround re-enables the entry after displaying, and allows users to utilize the clipboard without putting in text first.

Asana Task: https://app.asana.com/0/1169444489336079/1199543494650934/f
Closes #1215

Code changes

  • src/Android/Renderers/CustomEntryRenderer.cs: Workaround for Android clipboard bug

Testing requirements

  • Regression testing of clipboard functionality for entry fields throughout the application on Android 11

Before you submit

  • I have added unit tests where it makes sense to do so (encouraged but not required)
  • This change requires a documentation update (notify the documentation team)
  • This change has particular deployment requirements (notify the DevOps team)

🔄 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/1658 **Author:** [@jlf0dev](https://github.com/jlf0dev) **Created:** 11/22/2021 **Status:** ✅ Merged **Merged:** 11/23/2021 **Merged by:** [@jlf0dev](https://github.com/jlf0dev) **Base:** `master` ← **Head:** `bug/android-11-clipboard` --- ### 📝 Commits (1) - [`99507b3`](https://github.com/bitwarden/android/commit/99507b380a83bd136b7fd220193a42f1d7335e5c) Add workaround to Android entry renderer ### 📊 Changes **1 file changed** (+10 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/Android/Renderers/CustomEntryRenderer.cs` (+10 -1) </details> ### 📄 Description ## 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--> Android has a known bug preventing the copy/paste functionality on a TextView inside a scrollable RecyclerView: https://issuetracker.google.com/issues/37095917 While running on Android 11, Bitwarden entry fields are encountering the same problem. After loading a page with entry fields, you can't long-press to show copy/paste menu unless you first input text. This workaround re-enables the entry after displaying, and allows users to utilize the clipboard without putting in text first. Asana Task: https://app.asana.com/0/1169444489336079/1199543494650934/f Closes #1215 ## 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--> * **src/Android/Renderers/CustomEntryRenderer.cs:** Workaround for Android clipboard bug ## Testing requirements <!--What functionality requires testing by QA? This includes testing new behavior and regression testing--> - Regression testing of clipboard functionality for entry fields throughout the application on Android 11 ## Before you submit - [ ] I have added **unit tests** where it makes sense to do so (encouraged but not required) - [ ] This change requires a **documentation update** (notify the documentation team) - [ ] This change has particular **deployment requirements** (notify the DevOps team) --- <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:27:25 -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#3035