Commit a0eff3db by 霍志良

feat:咨询列表去除重复

parent dbbb7b96
...@@ -820,9 +820,11 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres ...@@ -820,9 +820,11 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
doctorAdapter.hasMore = false doctorAdapter.hasMore = false
} }
doctorList.addAll(data) doctorList.addAll(data)
//咨询师列表去除重复数据start
var linkedHashSet=LinkedHashSet(doctorList) var linkedHashSet=LinkedHashSet(doctorList)
doctorList.clear() doctorList.clear()
doctorList.addAll(linkedHashSet) doctorList.addAll(linkedHashSet)
//咨询师列表去除重复数据end
doctorAdapter.notifyDataSetChanged() doctorAdapter.notifyDataSetChanged()
isDoSearch = false isDoSearch = false
isRecommend = false isRecommend = false
......
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