Fix unread count separator and mark read when viewing behavior.

Fixes #12510
fork-5.53.8
Cody Henthorne 2022-10-12 10:39:20 -04:00
rodzic 371d9e8f01
commit 7139f91997
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1380,7 +1380,7 @@ public class ConversationFragment extends LoggingFragment implements Multiselect
}
int position = getListLayoutManager().findFirstVisibleItemPosition();
if (position == getListAdapter().getItemCount() - 1) {
if (position == -1 || position == getListAdapter().getItemCount() - 1) {
return;
}

Wyświetl plik

@ -30,7 +30,7 @@ class LastSeenHeader extends StickyHeaderDecoration {
@Override
protected boolean hasHeader(RecyclerView parent, StickyHeaderAdapter stickyAdapter, int position) {
if (lastSeenTimestamp <= 0) {
if (lastSeenTimestamp <= 0 || unreadCount <= 0) {
return false;
}