am 3c40675f: Merge "Fix potential NPE when saving fragment state."
* commit '3c40675f6f473896b93ca6416d29192d88e92622': 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