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