Used onSaveInstanceState to save mCurrentIndex on config change.