Skip to content

Commit 175918d

Browse files
committed
Don't load preferences twice.
Since it's done by onCreatePreferences() there is no reason to do it in onCreate(). Hey, half the preferences!
1 parent 22dc204 commit 175918d

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

cSploit/src/org/csploit/android/SettingsActivity.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ public void onCreate(Bundle savedInstanceState) {
102102
getActivity().setTheme(R.style.PrefsTheme);
103103
super.onCreate(savedInstanceState);
104104

105-
// Load the preferences from an XML resource
106-
addPreferencesFromResource(R.xml.preferences);
107-
108-
109105
mSavePath = getPreferenceScreen().findPreference("PREF_SAVE_PATH");
110106
mWipeMSF = getPreferenceScreen().findPreference("PREF_MSF_WIPE");
111107
mRubyDir = getPreferenceScreen().findPreference("RUBY_DIR");

0 commit comments

Comments
 (0)