Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backport: fix(android): Use uno command for all clipboard #10133

Closed

Conversation

Minion3665
Copy link
Member

This is a trivial backport of #10111

Previously on mobile, we were only using the uno commands for some clipboard operations - the pasting ones. That's incorrect, as on Android and iOS we don't have access to the browser clipboard APIs and should be using the native bits, which for Android intercept these UNO calls and use them to manage the clipboard.

For iOS, this still falls over - albeit in a slighly different way - but the iOS clipboard code is in core and is nontrivial to fix. I have a patch in the works which would make an API similar to navigator.clipboard for iOS/Android (hopefully reducing our pains here) but I don't see a point in not making a tiny, temporary Android fix.

When I change the clipboard system's mobile app bits, this will go away anyway :)

Change-Id: Ifa68b6e956cd5ca75dc8f54b4198a441b2bf1887

  • Resolves: #
  • Target version: master

Summary

TODO

  • ...

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

@Minion3665 Minion3665 force-pushed the private/skyler/push-qkxxksuysxpw branch 2 times, most recently from 7d87cdd to d72b27e Compare September 26, 2024 10:21
@Minion3665
Copy link
Member Author

I've rebased this back before the slideshow stuff, as that's causing CI to fail. The real solution is figuring out why CI is pulling an old core version

@Minion3665 Minion3665 force-pushed the private/skyler/push-qkxxksuysxpw branch from d72b27e to 3e34215 Compare September 26, 2024 10:23
Previously on mobile, we were only using the uno commands for some
clipboard operations - the pasting ones. That's incorrect, as on Android
and iOS we don't have access to the browser clipboard APIs and should be
using the native bits, which for Android intercept these UNO calls and
use them to manage the clipboard.

For iOS, this still falls over - albeit in a slighly different way - but
the iOS clipboard code is in core and is nontrivial to fix. I have a
patch in the works which would make an API similar to
navigator.clipboard for iOS/Android (hopefully reducing our pains here)
but I don't see a point in not making a tiny, temporary Android fix.

When I change the clipboard system's mobile app bits, this will go away
anyway :)

Signed-off-by: Skyler Grey <[email protected]>
Change-Id: Ifa68b6e956cd5ca75dc8f54b4198a441b2bf1887
@Minion3665 Minion3665 force-pushed the private/skyler/push-qkxxksuysxpw branch from 3e34215 to b5d7238 Compare September 27, 2024 09:49
@Minion3665 Minion3665 closed this Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant