1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-25 01:06:04 +00:00

Scroll to expanded message

This commit is contained in:
M66B 2022-07-31 18:11:15 +02:00
parent a884745b9b
commit 61ad85eed7

View file

@ -6481,8 +6481,16 @@ public class FragmentMessages extends FragmentBase
}
if (expand != null &&
(expand.content || unmetered || (expand.size != null && expand.size < download)))
(expand.content || unmetered || (expand.size != null && expand.size < download))) {
iProperties.setExpanded(expand, true, false);
for (int pos = 0; pos < messages.size(); pos++) {
TupleMessageEx message = messages.get(pos);
if (message == expand) {
adapter.gotoPos(pos);
break;
}
}
}
}
// Auto expand all seen messages