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

Commit 847d677f authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android Git Automerger
Browse files

am 3c40675f: Merge "Fix potential NPE when saving fragment state."

* commit '3c40675f':
  Fix potential NPE when saving fragment state.
parents 22ec624c 3c40675f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1538,6 +1538,9 @@ final class FragmentManagerImpl extends FragmentManager {
                    FragmentManagerImpl.VIEW_STATE_TAG, f.mSavedViewState);
        }
        if (!f.mUserVisibleHint) {
            if (result == null) {
                result = new Bundle();
            }
            // Only add this if it's not the default value
            result.putBoolean(FragmentManagerImpl.USER_VISIBLE_HINT_TAG, f.mUserVisibleHint);
        }