mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 22:21:18 +00:00
Collapse multiple messages on back
This commit is contained in:
parent
a05aa15bdb
commit
3b82b65999
1 changed files with 10 additions and 3 deletions
|
@ -1698,8 +1698,8 @@ public class FragmentMessages extends FragmentEx {
|
|||
}
|
||||
|
||||
// Auto expand when:
|
||||
// - single, non archived/trashed/outgoing message
|
||||
// - one unread, non archived/trashed/outgoing message in conversation
|
||||
// - single, non archived/trashed/sent message
|
||||
// - one unread, non archived/trashed/sent message in conversation
|
||||
// - sole message
|
||||
|
||||
TupleMessageEx expand = null;
|
||||
|
@ -1729,7 +1729,7 @@ public class FragmentMessages extends FragmentEx {
|
|||
Log.i(Helper.TAG, "Auto close=" + count);
|
||||
|
||||
// Auto close when:
|
||||
// - no more non archived/trashed/outgoing messages
|
||||
// - no more non archived/trashed/sent messages
|
||||
|
||||
if (count == 0) {
|
||||
finish();
|
||||
|
@ -1932,6 +1932,13 @@ public class FragmentMessages extends FragmentEx {
|
|||
selectionTracker.clearSelection();
|
||||
return true;
|
||||
}
|
||||
|
||||
if (expanded.size() > 1) {
|
||||
expanded.clear();
|
||||
adapter.notifyDataSetChanged();
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue