diff --git a/app/src/main/java/eu/faircode/email/FragmentDialogOpenLink.java b/app/src/main/java/eu/faircode/email/FragmentDialogOpenLink.java index c56dbbf746..d8f8ef3f2c 100644 --- a/app/src/main/java/eu/faircode/email/FragmentDialogOpenLink.java +++ b/app/src/main/java/eu/faircode/email/FragmentDialogOpenLink.java @@ -324,7 +324,7 @@ public class FragmentDialogOpenLink extends FragmentDialogBase { @Override public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { Uri link = (checked ? sanitized : uri); - boolean secure = UriHelper.isSecure(link); + boolean secure = cbSecure.isChecked(); cbSecure.setTag(secure); cbSecure.setChecked(secure); etLink.setText(format(UriHelper.secure(link, secure), context));