Commit 2597ccb5 by 霍志良

feat:滚动到底部

parent bb6ae476
......@@ -271,7 +271,6 @@ public class MessageListPanelEx {
private void doScrollToBottom() {
messageListView.scrollToPosition(adapter.getBottomDataPosition());
}
public void onIncomingMessage(List<IMMessage> messages) {
boolean needScrollToBottom = isLastMessageVisible();
boolean needRefresh = false;
......@@ -303,6 +302,7 @@ public class MessageListPanelEx {
} else if (incomingMsgPrompt != null && lastMsg.getSessionType() != SessionTypeEnum.ChatRoom) {
incomingMsgPrompt.show(lastMsg);
}
messageListView.smoothScrollToPosition(adapter.getBottomDataPosition());
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment