mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
Update secure indication on sanitizing link
This commit is contained in:
@@ -321,7 +321,11 @@ public class FragmentDialogOpenLink extends FragmentDialogBase {
|
||||
cbSanitize.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||
etLink.setText(format(secure(checked ? sanitized : uri, cbSecure.isChecked()), context));
|
||||
Uri link = (checked ? sanitized : uri);
|
||||
boolean secure = (!link.isOpaque() && "https".equals(link.getScheme()));
|
||||
cbSecure.setTag(secure);
|
||||
cbSecure.setChecked(secure);
|
||||
etLink.setText(format(secure(link, secure), context));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user