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

Commit a62a3d8e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Call noteStateNotSaved on child fragment managers." into oc-dev

parents 15483684 74af0764
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2608,6 +2608,12 @@ public class Fragment implements ComponentCallbacks2, OnCreateContextMenuListene
        }
    }

    void noteStateNotSaved() {
        if (mChildFragmentManager != null) {
            mChildFragmentManager.noteStateNotSaved();
        }
    }

    @Deprecated
    void performMultiWindowModeChanged(boolean isInMultiWindowMode) {
        onMultiWindowModeChanged(isInMultiWindowMode);
+8 −1
Original line number Diff line number Diff line
@@ -2893,6 +2893,13 @@ final class FragmentManagerImpl extends FragmentManager implements LayoutInflate

    public void noteStateNotSaved() {
        mStateSaved = false;
        final int addedCount = mAdded == null ? 0 : mAdded.size();
        for (int i = 0; i < addedCount; i++) {
            Fragment fragment = mAdded.get(i);
            if (fragment != null) {
                fragment.noteStateNotSaved();
            }
        }
    }

    public void dispatchCreate() {