Skip auto expanding drafts/trashed messages

pull/184/head
M66B 5 years ago
parent 0a93587cce
commit 6487ad6c3e

@ -4270,7 +4270,11 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
boolean expand_all = prefs.getBoolean("expand_all", false); boolean expand_all = prefs.getBoolean("expand_all", false);
if (expand_all) if (expand_all)
for (TupleMessageEx message : messages) for (TupleMessageEx message : messages)
if (message != null && message.ui_seen && !message.duplicate) if (message != null &&
message.ui_seen &&
!message.duplicate &&
!EntityFolder.DRAFTS.equals(message.folderType) &&
!EntityFolder.TRASH.equals(message.folderType))
iProperties.setExpanded(message, true); iProperties.setExpanded(message, true);
} else { } else {
if (autoCloseCount > 0 && (autoclose || onclose != null)) { if (autoCloseCount > 0 && (autoclose || onclose != null)) {

Loading…
Cancel
Save