Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c656b30 authored by George Mount's avatar George Mount
Browse files

Clear child fragment manager after it is destroyed.

Bug 26945643

After a child fragment manager has been destroyed, it should not
be reused because it is no longer attached to the host. Clearing
it ensures that it will be recreated when it is needed again when
the fragment has been reattached.

Change-Id: I7e52a42a66d761ab69596fdcdb5b2b2e3b4dcc6c
parent 415dd94a
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -2509,6 +2509,7 @@ public class Fragment implements ComponentCallbacks2, OnCreateContextMenuListene
            throw new SuperNotCalledException("Fragment " + this
            throw new SuperNotCalledException("Fragment " + this
                    + " did not call through to super.onDestroy()");
                    + " did not call through to super.onDestroy()");
        }
        }
        mChildFragmentManager = null;
    }
    }


    private static Transition loadTransition(Context context, TypedArray typedArray,
    private static Transition loadTransition(Context context, TypedArray typedArray,