From 07e83c91f92b05db77174a1a883bc08e7e4a99bf Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 8 Feb 2023 19:13:50 +0100 Subject: [PATCH] Small behavior improvement / open link dialog --- app/src/main/java/eu/faircode/email/FragmentDialogOpenLink.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));