Skip to content

Fixed clipboard not clearing on Android 10#851

Merged
mpbw2 merged 1 commit intomasterfrom
bugfix-clearclipboard
Apr 23, 2020
Merged

Fixed clipboard not clearing on Android 10#851
mpbw2 merged 1 commit intomasterfrom
bugfix-clearclipboard

Conversation

@mpbw2
Copy link
Contributor

@mpbw2 mpbw2 commented Apr 22, 2020

In Android 10 it is no longer possible to retrieve the contents of the clipboard unless you're in the foreground or an IME (keyboard, etc.). We're now simply clearing the clipboard contents after [time] regardless of what's in it.

  • Removed StaticStore class as its only purpose has been rendered obsolete
  • Replaced deprecated method of setting clipboard contents
  • The "bitwarden" label in the ClipData acts as a content description for developers. (It's not possible to retrieve this value without focus or IME either or I would have used it to at least identify ownership of the clipboard contents)

@mpbw2 mpbw2 requested review from cscharf and kspearrin April 22, 2020 22:53
@mpbw2 mpbw2 linked an issue Apr 22, 2020 that may be closed by this pull request
@mpbw2 mpbw2 merged commit 9a403ba into master Apr 23, 2020
@mpbw2 mpbw2 deleted the bugfix-clearclipboard branch April 23, 2020 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android 10: Clipboard doesn't clear

2 participants