Fix orientation change issue in SettingsFragment.