Varun Gupta преди 6 години
родител
ревизия
3b9f6bfbbf
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      android/app/src/main/java/com/reactnativenavigation/views/sharedElementTransition/SharedElements.java

+ 1
- 1
android/app/src/main/java/com/reactnativenavigation/views/sharedElementTransition/SharedElements.java Целия файл

@@ -134,7 +134,7 @@ public class SharedElements {
134 134
         Iterator<String> iterator = toElements.keySet().iterator();
135 135
         while (iterator.hasNext()) {
136 136
             String key = iterator.next();
137
-            if (!ViewVisibilityChecker.check(toElements.get(key))) {
137
+            if (!ViewVisibilityChecker.check(toElements.get(key)) && fromElements.get(key) != null) {
138 138
                 iterator.remove();
139 139
                 fromElements.get(key).show();
140 140
             }