From f7d03021925aab148f65ee3563e714835b9ab573 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 24 Oct 2018 12:32:50 +0000 Subject: [PATCH] Auto expand sole messages --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 10e849ce..794192a5 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -992,12 +992,15 @@ public class FragmentMessages extends FragmentEx { // Auto expand when: // - single, non archived/sent message // - one unread, non archived/sent message in conversation + // - sole message TupleMessageEx expand = null; if (autoCount == 1) expand = single; else if (unseen == 1) expand = see; + else if (messages.size() == 1) + expand = messages.get(0); if (expand != null) { expanded.add(expand.id);