我注意到出现BUG的代码改动为
package cn.wildfire.chat.kit.conversationlist.ConversationListFragment line 81行
以前的代码
conversationListViewModel = new ViewModelProvider(this, new ConversationListViewModelFactory(types, lines))
.get(ConversationListViewModel.class);
现在的代码
conversationListViewModel = new ViewModelProvider(getActivity(), new ConversationListViewModelFactory(types, lines))
.get(ConversationListViewModel.class);
导致出现的问题
public static List<Conversation.ConversationType> types = Arrays.asList(
Conversation.ConversationType.Single
);
我以前的版本没有问题
我注意到出现BUG的代码改动为
package cn.wildfire.chat.kit.conversationlist.ConversationListFragment line 81行
以前的代码 conversationListViewModel = new ViewModelProvider(this, new ConversationListViewModelFactory(types, lines)) .get(ConversationListViewModel.class); 现在的代码 conversationListViewModel = new ViewModelProvider(getActivity(), new ConversationListViewModelFactory(types, lines)) .get(ConversationListViewModel.class);
导致出现的问题
这个参数失效,无法区分群组和单聊 ,改成以前的this就可以区分