mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 22:29:09 +00:00
Try to fix another bug
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
86c6f374a3
commit
6bc0a64c73
@ -325,7 +325,7 @@ public class ChatController extends BaseController implements MessagesListAdapte
|
||||
if (layoutManager.findFirstCompletelyVisibleItemPosition() < newMessagesCount) {
|
||||
newMessagesCount = 0;
|
||||
|
||||
if (popupBubble.isShown()) {
|
||||
if (popupBubble != null && popupBubble.isShown()) {
|
||||
popupBubble.hide();
|
||||
}
|
||||
}
|
||||
@ -693,7 +693,7 @@ public class ChatController extends BaseController implements MessagesListAdapte
|
||||
boolean shouldScroll = layoutManager.findFirstVisibleItemPosition() == 0 ||
|
||||
adapter.getItemCount() == 0;
|
||||
|
||||
if (!shouldScroll) {
|
||||
if (!shouldScroll && popupBubble != null) {
|
||||
if (!popupBubble.isShown()) {
|
||||
newMessagesCount = 1;
|
||||
popupBubble.show();
|
||||
|
Loading…
Reference in New Issue
Block a user