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