Removed unused code in PreferencesActivity