Fix issue with child controllers frozen at detach time not re-attaching

This commit is contained in:
EricKuck
2023-08-15 14:30:19 -04:00
parent 4d4d8bfbd1
commit a90ca5180e
@@ -1387,11 +1387,17 @@ public abstract class Controller {
if (isDetachFrozen != frozen) {
isDetachFrozen = frozen;
boolean detach = !frozen && view != null && viewWasDetached;
for (ControllerHostedRouter router : childRouters) {
if (detach) {
router.prepareForHostDetach();
}
router.setDetachFrozen(frozen);
}
if (!frozen && view != null && viewWasDetached) {
if (detach) {
View aView = view;
detach(view, false, false);
if (view == null && aView.getParent() == router.container) {