1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Small behavior fix

This commit is contained in:
M66B 2022-06-01 07:53:16 +02:00
parent 0d4d10ce27
commit e8ec62b492

View file

@ -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));
}
});