Copy email address without scheme

This commit is contained in:
M66B 2024-02-17 17:25:25 +01:00
parent 2e3687f4f3
commit f896be9835
1 changed files with 5 additions and 1 deletions

View File

@ -300,7 +300,11 @@ public class FragmentDialogOpenLink extends FragmentDialogBase {
if (clipboard == null)
return;
ClipData clip = ClipData.newPlainText(title, etLink.getText().toString());
String link = etLink.getText().toString();
if (link.startsWith("mailto:"))
link = link.substring("mailto:".length());
ClipData clip = ClipData.newPlainText(title, link);
clipboard.setPrimaryClip(clip);
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU)