Skip to content

Conversation

@cketti
Copy link
Contributor

@cketti cketti commented Nov 12, 2020

Use the AndroidX version of MailTo instead of the broken platform version.

For more information see https://cketti.de/2020/06/22/android-net-mailto-is-broken/

Use the AndroidX version of MailTo instead of the broken platform version.
For more information see https://cketti.de/2020/06/22/android-net-mailto-is-broken/
@M66B
Copy link
Owner

M66B commented Nov 13, 2020

Thanks for this. In fact there are a few workarounds for the described problems.

I am a bit worried that other things break though, so I will need to look into this a bit deeper and do some test first.

@M66B M66B merged commit 1b38b92 into M66B:master Nov 13, 2020
@cketti cketti deleted the MailToCompat branch November 21, 2020 04:19
@M66B
Copy link
Owner

M66B commented Apr 8, 2022

@cketti The AndroidX MailTo implementation is not entirely correct either. It uses Uri.decode, which in turn uses UriCodec.decode with UTF-8 as character set, which means that for example %ab will be decoded into an invalid UTF-8 character.

Hence: https://github.com/M66B/FairEmail/blob/master/app/src/main/java/eu/faircode/email/MailTo.java

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.

2 participants