fixed bugs

This commit is contained in:
lixiaopeng
2022-02-24 16:43:50 +08:00
parent fea95ebf84
commit 60622ef131
5 changed files with 53 additions and 31 deletions

View File

@@ -422,18 +422,20 @@ public class TopViewAnimHelper {
public void removeAllViewExceptVrNav() {
Logger.d(TAG, "remove all view except vr nav");
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.beforeViewRemoveAnim(child);
listener.onViewRemoved(child);
if(topContainer != null) {
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.beforeViewRemoveAnim(child);
listener.onViewRemoved(child);
}
}
topContainer.setTranslationY(0);
topContainer.removeAllViews();
}
topContainer.setTranslationY(0);
topContainer.removeAllViews();
hideNaviView();
}