Drop redundant code in SettingsFragment.java