@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); if (mChapterAdapter != null && mChapterAdapter.getCount() > 0) { outState.putParcelable(ARG_SELECTED_CHAPTER, mSelectedChapter); } }