This commit is contained in:
lixiaopeng
2020-02-10 14:53:45 +08:00
parent 167e1db506
commit 345545a327

View File

@@ -996,6 +996,18 @@ public class TanluCardViewFragment extends MvpFragment<IView, Presenter<IView>>
return;
}
if (markerExploreWayList != null && markerExploreWayList.size() > 0) {
markerExploreWayList.clear(); //刷新之前先删除之前的,然后再添加成请求的
currentPosition = 0;
}
//转换数据结构
convertData(informationList);
//切换到探路卡片
if (!isCurrentPage) {
iMogoCardManager.switch2(TanluConstants.MODEL_NAME);
}
//清除探路之前的数据
mMarkerManager.removeMarkers(TanluConstants.MODEL_NAME);
@@ -1024,6 +1036,9 @@ public class TanluCardViewFragment extends MvpFragment<IView, Presenter<IView>>
}
Logger.d(TAG, "getNavigationData optionList.size() = " + optionList.size());
mMarkerManager.addMarkers(TanluConstants.MODEL_NAME, optionList, true);
//直接使用当前数据list作为切换的数据源切换左侧列表到最新的数据
handleMarkerExploreWay(markerExploreWayList.get(0));
}
@Override