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

Try to find a valid URL when an app shares title+URL stuffed together #1830

Merged

Conversation

andybalaam
Copy link
Contributor

@andybalaam andybalaam commented Jan 15, 2025

Fixes #1826 .

Look for a URL at the end of a long string of title+URL passed to us from SendIntent. It's possible a better fix might be available by modifying SendIntent (or even by asking for a fix to the Amazon Shopping app?) but this makes things work as they should, and doesn't do anything if we are given a valid URL, so hopefully can't do much harm even if this is later fixed upstream.

Before:

amazon-share-before

After:

amazon-share-after

Copy link
Member

@marcelklehr marcelklehr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@marcelklehr marcelklehr merged commit 3d97f82 into floccusaddon:develop Jan 15, 2025
24 of 34 checks passed
@andybalaam andybalaam deleted the process-amazon-share-correctly branch January 15, 2025 13:54
@marcelklehr
Copy link
Member

@allcontributors please add @andybalaam for code and bug reports

Copy link
Contributor

@marcelklehr

I've put up a pull request to add @andybalaam! 🎉

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.

Importing via Share from the Amazon App crashes the app
2 participants