mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 08:47:27 +00:00
Fix crash when scrolling to the top of a conversation.
This commit is contained in:
@@ -1096,6 +1096,10 @@ public class ConversationFragment extends LoggingFragment {
|
||||
}
|
||||
|
||||
int position = getListLayoutManager().findFirstVisibleItemPosition();
|
||||
if (position == getListAdapter().getItemCount() - 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (position >= (isTypingIndicatorShowing() ? 1 : 0)) {
|
||||
ConversationMessage item = getListAdapter().getItem(position);
|
||||
if (item != null) {
|
||||
|
Reference in New Issue
Block a user