@TargetApi(Build.VERSION_CODES.LOLLIPOP) @Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); if (null != mCurrentPage) { outState.putInt(STATE_CURRENT_PAGE_INDEX, mCurrentPage.getIndex()); } }
/** Updates the state of 2 control buttons in response to the current page index. */ @TargetApi(Build.VERSION_CODES.LOLLIPOP) private void updateUi() { int index = mCurrentPage.getIndex(); int pageCount = mPdfRenderer.getPageCount(); // getActivity().setTitle(getString(R.string.app_name_with_index, index + 1, pageCount)); }