mirror of https://github.com/M66B/FairEmail.git
Copy email address without scheme
This commit is contained in:
parent
2e3687f4f3
commit
f896be9835
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue