diff --git a/app/src/main/java/eu/faircode/email/FragmentDialogInsertLink.java b/app/src/main/java/eu/faircode/email/FragmentDialogInsertLink.java index 2ffaccda41..0e444bc4d6 100644 --- a/app/src/main/java/eu/faircode/email/FragmentDialogInsertLink.java +++ b/app/src/main/java/eu/faircode/email/FragmentDialogInsertLink.java @@ -99,7 +99,9 @@ public class FragmentDialogInsertLink extends FragmentDialogBase { return; Uri uri = Uri.parse(editable.toString()); - tvInsecure.setVisibility(UriHelper.isSecure(uri) ? View.GONE : View.VISIBLE); + tvInsecure.setVisibility( + !UriHelper.isHyperLink(uri) || UriHelper.isSecure(uri) + ? View.GONE : View.VISIBLE); btnMetadata.setEnabled(UriHelper.isHyperLink(uri)); } });