mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-24 11:12:54 +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