null check for conversation
This commit is contained in:
parent
d27d9d9366
commit
2442dabb2a
|
@ -191,10 +191,12 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
|
|||
}
|
||||
|
||||
private void toggleScrollDownButton(AbsListView listView) {
|
||||
if (conversation == null) {
|
||||
return;
|
||||
}
|
||||
if (scrolledToBottom(listView)) {
|
||||
lastMessageUuid = null;
|
||||
hideUnreadMessagesCount();
|
||||
|
||||
} else {
|
||||
binding.scrollToBottomButton.setEnabled(true);
|
||||
binding.scrollToBottomButton.setVisibility(View.VISIBLE);
|
||||
|
|
Loading…
Reference in New Issue