From b3c53c0e8754f5ab85797e04d537cae74bc21155 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 16 Oct 2019 10:54:37 +0200 Subject: [PATCH] Independent auto expand seen --- .../java/eu/faircode/email/FragmentMessages.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 6243da6091..7c92247b96 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -3193,13 +3193,14 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. iProperties.setValue("expanded", expand.id, true); } - - boolean expand_all = prefs.getBoolean("expand_all", false); - if (expand_all) - for (TupleMessageEx message : messages) - if (message != null && message.ui_seen) - iProperties.setValue("expanded", message.id, true); } + + // Auto expand all seen messages + boolean expand_all = prefs.getBoolean("expand_all", false); + if (expand_all) + for (TupleMessageEx message : messages) + if (message != null && message.ui_seen) + iProperties.setValue("expanded", message.id, true); } else { if (autoCloseCount > 0 && (autoclose || onclose != null)) { int count = 0;