Small behavior fix

pull/208/head
M66B 2 years ago
parent 0d4d10ce27
commit e8ec62b492

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

Loading…
Cancel
Save