修改测试问题,shouye ytuijian
This commit is contained in:
parent
bb06f1b9f6
commit
2279823780
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user