mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 09:22:23 +00:00
Fix crash with conversations with "uknown contact" header.
We weren't accounting for ConversationAdapter header position when getting the next and previous record in a conversation.
This commit is contained in:
@@ -211,6 +211,13 @@ public abstract class CursorRecyclerViewAdapter<VH extends RecyclerView.ViewHold
|
||||
return position - getFastAccessSize();
|
||||
}
|
||||
|
||||
protected int getRawCursorPosition(int position) {
|
||||
if (hasHeaderView()) {
|
||||
position += 1;
|
||||
}
|
||||
return position;
|
||||
}
|
||||
|
||||
protected int getFastAccessItemViewType(int position) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user