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

Commit 46d168fb authored by Todd Kennedy's avatar Todd Kennedy
Browse files

Don't negate saving state

In the original implementation, we would only save the state if the
activity was "!isFinishing()". That was abstracted into a method
that returned whether we should save state. However, the "!" wasn't
removed. D'oh.

Bug: 20860094
Change-Id: I8827cb265f2e7fb911f5d110c56e464aa092bfe7
parent 55e603ee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -945,7 +945,7 @@ final class FragmentManagerImpl extends FragmentManager implements LayoutInflate
                        if (f.mView != null) {
                            // Need to save the current view state if not
                            // done already.
                            if (!mHost.onShouldSaveFragmentState(f) && f.mSavedViewState == null) {
                            if (mHost.onShouldSaveFragmentState(f) && f.mSavedViewState == null) {
                                saveFragmentViewState(f);
                            }
                        }