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

Image pastes as plain text with unusual string on Android when copied from Samsung Gallery #2323

Closed
1 task done
EchoEllet opened this issue Oct 17, 2024 · 2 comments · Fixed by #2384
Closed
1 task done
Labels
android Issues or feature requests specific to the Android platform. bug Something isn't working moderate Issues that are important for improving functionality or user experience. reproducible This bug has been confirmed and can be reliably reproduced.

Comments

@EchoEllet
Copy link
Collaborator

EchoEllet commented Oct 17, 2024

Is there an existing issue for this?

Flutter Quill version

10.7.5

Steps to reproduce

  1. Run the example Android, with the latest version (e.g. 10.8.4) or older versions (e.g. 10.7.5).
  2. Copy an image from the gallery app, specifically the Samsung gallery app (not Google Photos) on a real device.
  3. Paste it using the paste button in the toolbar or the context menu.

Expected results

Actual results

Additional Context

At first, I assumed this was a regression from #2230 though I'm able to reproduce the issue on older versions.

It looks like Clipboard.getData(Clipboard.kTextPlain) returns a strange String and this issue doesn't happen when copying an image from the browser or other apps.

I tried super_clipboard (since quill_native_bridge doesn't have getClipboardText()) and it seems it returns null which is correct and the expected behavior.

This is a disruptive bug, I'm uncertain if this bug is from Clipboard.getData(Clipboard.kTextPlain) or from that Samsung gallery app.

@EchoEllet EchoEllet added bug Something isn't working critical Requires immediate attention. This issue causes major functionality loss, crashes, or security vulne android Issues or feature requests specific to the Android platform. reproducible This bug has been confirmed and can be reliably reproduced. and removed critical Requires immediate attention. This issue causes major functionality loss, crashes, or security vulne reproducible This bug has been confirmed and can be reliably reproduced. labels Oct 17, 2024
@EchoEllet
Copy link
Collaborator Author

EchoEllet commented Oct 17, 2024

Another bug while reproducing:

2024-10-17.11.09.47.mp4

@EchoEllet EchoEllet closed this as not planned Won't fix, can't repro, duplicate, stale Oct 17, 2024
@EchoEllet EchoEllet reopened this Oct 17, 2024
@EchoEllet EchoEllet added reproducible This bug has been confirmed and can be reliably reproduced. moderate Issues that are important for improving functionality or user experience. labels Oct 17, 2024
@EchoEllet EchoEllet changed the title Pasting an image paste the image bytes as plain text on Android Image pastes as plain text with unusual string on Android when copied from Samsung Gallery Oct 17, 2024
@EchoEllet
Copy link
Collaborator Author

This bug seems to be similar on iOS. We probably have a regression with the context menu.

Screen.Recording.2024-10-17.at.12.54.54.PM.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Issues or feature requests specific to the Android platform. bug Something isn't working moderate Issues that are important for improving functionality or user experience. reproducible This bug has been confirmed and can be reliably reproduced.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant