| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -903,6 +903,12 @@ class FragmentCallbacksImplementation implements AndroidFragmentCallbacks { | |||
| 903 | 903 | return null; | |
| 904 | 904 | } | |
| 905 | 905 | ||
| 906 | + // [nested frames / fragments] see https://github.com/NativeScript/NativeScript/issues/6629 | ||
| 907 | + // retaining reference to a destroyed fragment here somehow causes a cryptic | ||
| 908 | + // "IllegalStateException: Failure saving state: active fragment has cleared index: -1" | ||
| 909 | + // in a specific mixed parent / nested frame navigation scenario | ||
| 910 | + entry.fragment = null; | ||
| 911 | + | ||
| 906 | 912 | const page = entry.resolvedPage; | |
| 907 | 913 | if (!page) { | |
| 908 | 914 | traceError(`${fragment}.onDestroy: entry has no resolvedPage`); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments