mirror of https://github.com/M66B/FairEmail.git
Auto expand outgoing messages
This commit is contained in:
parent
7ee724acc9
commit
627bf6b8c3
|
@ -5325,6 +5325,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
this.ascending = ascending;
|
||||
}
|
||||
|
||||
boolean getAscending() {
|
||||
return ascending;
|
||||
}
|
||||
|
||||
void setFilterDuplicates(boolean filter_duplicates) {
|
||||
if (this.filter_duplicates != filter_duplicates) {
|
||||
this.filter_duplicates = filter_duplicates;
|
||||
|
|
|
@ -4215,6 +4215,11 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
expand = see;
|
||||
else if (messages.size() == 1)
|
||||
expand = messages.get(0);
|
||||
else if (messages.size() > 0) {
|
||||
TupleMessageEx first = messages.get(adapter.getAscending() ? messages.size() - 1 : 0);
|
||||
if (first != null && EntityFolder.OUTBOX.equals(first.folderType))
|
||||
expand = first;
|
||||
}
|
||||
|
||||
if (expand != null &&
|
||||
(expand.content || unmetered || (expand.size != null && expand.size < download)))
|
||||
|
|
Loading…
Reference in New Issue