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

Commit 3c40675f authored by Dianne Hackborn's avatar Dianne Hackborn Committed by android code review
Browse files

Merge "Fix potential NPE when saving fragment state."

parents fee88fdb 258029ee
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);
        }