diff --git a/main/src/main/java/com/yunbao/main/fragment/SearchRecommendFragment.java b/main/src/main/java/com/yunbao/main/fragment/SearchRecommendFragment.java index 4bb3602d7..20e182639 100644 --- a/main/src/main/java/com/yunbao/main/fragment/SearchRecommendFragment.java +++ b/main/src/main/java/com/yunbao/main/fragment/SearchRecommendFragment.java @@ -56,6 +56,15 @@ public class SearchRecommendFragment extends BaseFragment { @Override protected void loadData() { + //组装搜索历史数据 + List searchRecommendModels = new ArrayList<>(); + Map historyRecordMap = SearchHistoryRecordManager.get(getActivity()).getHistoryRecordMap(); + if (historyRecordMap.size() > 0) { + SearchRecommendModel model = new SearchRecommendModel(); + searchRecommendModels.add(model.setHistoryRecordMap(historyRecordMap)); + } + adapter.addData(searchRecommendModels); + MainNetManager.get(getActivity()) .anchorRecommend("10", new HttpCallback() { @Override