fix [上滑无法关闭名片]
This commit is contained in:
@@ -34,6 +34,7 @@ import io.rong.imkit.conversation.MessageListAdapter;
|
||||
import io.rong.imkit.conversation.extension.InputMode;
|
||||
import io.rong.imkit.conversation.extension.RongExtensionViewModel;
|
||||
import io.rong.imkit.conversation.extension.component.inputpanel.InputPanel;
|
||||
import io.rong.imkit.widget.refresh.api.RefreshLayout;
|
||||
import io.rong.imlib.RongIMClient;
|
||||
import io.rong.imlib.model.Conversation;
|
||||
|
||||
@@ -52,6 +53,12 @@ public class PDLiveConversationFragment extends ConversationFragment {
|
||||
public PDLiveConversationFragment() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLoadMore(@NonNull RefreshLayout refreshLayout) {
|
||||
super.onLoadMore(refreshLayout);
|
||||
EventBus.getDefault().post(new PDChatInputModeEvent(InputMode.TextInput));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
|
||||
mList.addOnScrollListener(new RecyclerView.OnScrollListener() {
|
||||
@@ -63,7 +70,9 @@ public class PDLiveConversationFragment extends ConversationFragment {
|
||||
@Override
|
||||
public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {
|
||||
super.onScrolled(recyclerView, dx, dy);
|
||||
EventBus.getDefault().post(new PDChatInputModeEvent(InputMode.TextInput));
|
||||
if (dx != 0 || dy != 0) {
|
||||
EventBus.getDefault().post(new PDChatInputModeEvent(InputMode.TextInput));
|
||||
}
|
||||
}
|
||||
});
|
||||
super.onViewCreated(view, savedInstanceState);
|
||||
|
||||
Reference in New Issue
Block a user