Small logic fix

This commit is contained in:
M66B 2024-05-23 09:04:28 +02:00
parent b29eb3b2ad
commit 8fa6b65d7a
1 changed files with 3 additions and 4 deletions

View File

@ -5679,7 +5679,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (!junk) { if (!junk) {
SharedPreferences.Editor editor = prefs.edit(); SharedPreferences.Editor editor = prefs.edit();
if (senders != null) if (cbNotAgain.isChecked() && cbNeverAgain.isChecked())
editor.putBoolean(full ? "confirm_html" : "confirm_images", false);
else if (senders != null && !cbNotAgain.isChecked())
for (Address sender : senders) { for (Address sender : senders) {
String from = ((InternetAddress) sender).getAddress(); String from = ((InternetAddress) sender).getAddress();
if (TextUtils.isEmpty(from)) if (TextUtils.isEmpty(from))
@ -5694,9 +5696,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
editor.putBoolean(full ? "ask_html" : "ask_images", !cbNotAgain.isChecked()); editor.putBoolean(full ? "ask_html" : "ask_images", !cbNotAgain.isChecked());
if (cbNotAgain.isChecked())
editor.putBoolean(full ? "confirm_html" : "confirm_images", false);
editor.apply(); editor.apply();
} }