最终解释为fragment在系统回收还原不完整导致的,最终解决办法是
@Override protected void onSaveInstanceState(Bundle outState) { if(mViewPager != null){ outState.putInt(STATE_POSITION, mViewPager.getCurrentItem()); } // super.onSaveInstanceState(outState); }
最终解释为fragment在系统回收还原不完整导致的,最终解决办法是
@Override protected void onSaveInstanceState(Bundle outState) { if(mViewPager != null){ outState.putInt(STATE_POSITION, mViewPager.getCurrentItem()); } // super.onSaveInstanceState(outState); }