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

import with non-file intent does not work #271

Open
braindevices opened this issue Feb 14, 2024 · 0 comments
Open

import with non-file intent does not work #271

braindevices opened this issue Feb 14, 2024 · 0 comments

Comments

@braindevices
Copy link

the sharing from DroidFS to openkeychain works fine.

However, unfortunately directly share non-file content does not work:

  • openkeychain->DroidFS does not work
  • in simpletexteditor, select text then try to share to DroidFS has same failure
  1. in openkeychain click Encrypt/decrypt
  2. choose a gpg file to decrypt
  3. click share
  4. choose encrypt with droidfs
  5. choose/unlock a vault path
  6. click on check mark on the top
  7. Error: Failed to handle the share request.

Is this a bug? I guess DroidFS should provide a UI to add file name, otherwise the share will always fail since the content shared by openkeychain does not have filename at all.

Problem is here: https://github.com/hardcore-sushi/DroidFS/blob/967d4551c57abbc9febd5f23f6a7fd1af4118b89/app/src/main/java/sushi/hardcore/droidfs/explorers/ExplorerActivityDrop.kt#L38C43-L38C79

Instead of throw error, we have to handle the uri==null and try receivingIntent.getData() to get the actual content uri.

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

No branches or pull requests

1 participant