Skip to content

Commit

Permalink
applied this patch to FragmentManager
Browse files Browse the repository at this point in the history
  • Loading branch information
k0smik0 committed Jun 11, 2012
1 parent a6357e4 commit e4adbb5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion v4/java/android/support/v4/app/FragmentManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -1574,10 +1574,13 @@ Bundle saveFragmentBasicState(Fragment f) {
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);
}

return result;
}

Expand Down

0 comments on commit e4adbb5

Please sign in to comment.