1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 18:27:43 +00:00

Scroll to top on new unread messages only

This commit is contained in:
M66B 2019-11-01 18:27:17 +01:00
parent 170bf25176
commit b1a69ba402

View file

@ -3614,7 +3614,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (autoscroll && previousList != null)
for (int i = 0; i < previousList.size(); i++) {
TupleMessageEx message = previousList.get(i);
if (message != null && !message.ui_seen && !message.ui_ignored && !message.duplicate)
if (message != null && !message.ui_seen && !message.duplicate)
prev++;
}
@ -3622,7 +3622,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (autoscroll && currentList != null)
for (int i = 0; i < currentList.size(); i++) {
TupleMessageEx message = currentList.get(i);
if (message != null && !message.ui_seen && !message.ui_ignored && !message.duplicate)
if (message != null && !message.ui_seen && !message.duplicate)
cur++;
}