Skip to content

Conversation

dgmltn
Copy link

@dgmltn dgmltn commented Aug 12, 2025

Fixes tailscale/tailscale#16850

This enables the ability to share text (Taildrop) from Android, via the clipboard or any other text sharing intent. The relevant intent is already handled by the app, but plain text is just ignored.

This is a partial solution to my request here

image

An open question: what do you think of the generated filename shared_text_[epoch].txt? I see the existing fallback filename when the filename is unknown is simply [epoch].txt but it seemed appropriate to add a bit of context when it's known that the text is coming from a share intent instead of directly from a file on disk.

dgmltn added 2 commits August 12, 2025 16:56
Simplified `loadFiles` by:
* Creating extension functions for the wordy getParcelable*Extra methods
* Shoring up some nullability checks
@nickoneill nickoneill requested a review from barnstar August 19, 2025 18:10
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.

Taildrop sharing should share text if stream is unavailable
1 participant