Browse Source

Auto expand sole messages

main
M66B 6 years ago
parent
commit
f7d0302192
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      app/src/main/java/eu/faircode/email/FragmentMessages.java

+ 3
- 0
app/src/main/java/eu/faircode/email/FragmentMessages.java View File

@ -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);


Loading…
Cancel
Save