mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 20:48:43 +00:00
Fix unread count separator and mark read when viewing behavior.
Fixes #12510
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user