Merge branch 'qa' into feature/qa_f

This commit is contained in:
wangcongtao
2020-08-03 10:02:30 +08:00
2 changed files with 18 additions and 0 deletions

View File

@@ -443,6 +443,7 @@ public class EntranceFragment extends MvpFragment< EntranceView, EntrancePresent
public void onDestroyView() {
super.onDestroyView();
isClickShare = false;
TopViewAnimHelper.getInstance().removeAllView();
}
@Override

View File

@@ -682,4 +682,21 @@ public class TopViewAnimHelper {
tvTurnInfo.setVisibility(visibility);
}
public void removeAllView(){
Logger.d(TAG, "remove all view");
isTopViewOut = true;
int lastCount = topContainer.getChildCount();
for (int i = 0; i < lastCount; i++) {
View child = topContainer.getChildAt(i);
viewCaches.remove(child);
IMogoTopViewStatusListener listener = statusListenerMap.remove(child);
if (listener != null) {
listener.onViewRemoved(child);
}
}
topContainer.removeAllViews();
hideNaviView();
MapCenterPointStrategy.setMapCenterPointByScene(mogoMapUIController, Scene.AIMLESS);
}
}