From 2279823780085fdc2050399fb3ac8987ba53df0a Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Wed, 10 Aug 2022 23:32:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95=E9=97=AE?= =?UTF-8?q?=E9=A2=98,shouye=20ytuijian?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yunbao/main/fragment/SearchRecommendFragment.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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