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

Commit e112567b authored by Adam Powell's avatar Adam Powell Committed by Android (Google) Code Review
Browse files

Merge "Fix bug 5116342 - don't keep fragment state around once resumed"

parents c993acbc 95202510
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -829,6 +829,9 @@ final class FragmentManagerImpl extends FragmentManager {
                            throw new SuperNotCalledException("Fragment " + f
                                    + " did not call through to super.onResume()");
                        }
                        // Get rid of this in case we saved it and never needed it.
                        f.mSavedFragmentState = null;
                        f.mSavedViewState = null;
                    }
            }
        } else if (f.mState > newState) {