Fix unread count separator and mark read when viewing behavior.

Fixes #12510
This commit is contained in:
Cody Henthorne
2022-10-12 10:39:20 -04:00
parent 371d9e8f01
commit 7139f91997
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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;
}