mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-11 18:10:44 +00:00
Try to fix a bug
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
6c8321d053
commit
ef829e8f2a
@ -311,7 +311,13 @@ public class ChatController extends BaseController implements MessagesListAdapte
|
||||
|
||||
popupBubble.setPopupBubbleListener(context -> {
|
||||
if (newMessagesCount != 0) {
|
||||
new Handler().postDelayed(() -> messagesList.smoothScrollToPosition(newMessagesCount - 1), 200);
|
||||
int scrollPosition;
|
||||
if (newMessagesCount - 1 < 0) {
|
||||
scrollPosition = 0;
|
||||
} else {
|
||||
scrollPosition = newMessagesCount - 1;
|
||||
}
|
||||
new Handler().postDelayed(() -> messagesList.smoothScrollToPosition(scrollPosition), 200);
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user