* commit '9d9251c8caee4a847b630653204bb205a1fbed09': Fix potential NPE when saving fragment state.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user