Fix crash when scrolling to the top of a conversation.
parent
5128438cfb
commit
f18b653725
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue