Search in sources :

Example 1 with ConversationListFragment

use of io.rong.imkit.fragment.ConversationListFragment in project SeaStar by 13120241790.

the class MainActivity method initConversationList.

private Fragment initConversationList() {
    if (mConversationFragment == null) {
        ConversationListFragment listFragment = ConversationListFragment.getInstance();
        Uri uri = Uri.parse("rong://" + getApplicationInfo().packageName).buildUpon().appendPath("conversationlist").appendQueryParameter(Conversation.ConversationType.PRIVATE.getName(), //设置私聊会话是否聚合显示
        "false").appendQueryParameter(Conversation.ConversationType.GROUP.getName(), "true").appendQueryParameter(Conversation.ConversationType.DISCUSSION.getName(), //设置私聊会话是否聚合显示
        "false").appendQueryParameter(Conversation.ConversationType.SYSTEM.getName(), //设置私聊会话是否聚合显示
        "false").build();
        listFragment.setUri(uri);
        return listFragment;
    } else {
        return mConversationFragment;
    }
}
Also used : ConversationListFragment(io.rong.imkit.fragment.ConversationListFragment) Uri(android.net.Uri)

Aggregations

Uri (android.net.Uri)1 ConversationListFragment (io.rong.imkit.fragment.ConversationListFragment)1