修改测试问题,shouye ytuijian

This commit is contained in:
18401019693 2022-08-10 23:32:11 +08:00
parent bb06f1b9f6
commit 2279823780

View File

@ -56,6 +56,15 @@ public class SearchRecommendFragment extends BaseFragment {
@Override @Override
protected void loadData() { protected void loadData() {
//组装搜索历史数据
List<SearchRecommendModel> searchRecommendModels = new ArrayList<>();
Map<String, String> historyRecordMap = SearchHistoryRecordManager.get(getActivity()).getHistoryRecordMap();
if (historyRecordMap.size() > 0) {
SearchRecommendModel model = new SearchRecommendModel();
searchRecommendModels.add(model.setHistoryRecordMap(historyRecordMap));
}
adapter.addData(searchRecommendModels);
MainNetManager.get(getActivity()) MainNetManager.get(getActivity())
.anchorRecommend("10", new HttpCallback<AnchorRecommendModel>() { .anchorRecommend("10", new HttpCallback<AnchorRecommendModel>() {
@Override @Override