fixed the way disabling of certain settings works on non-root devices

svn:r21851
This commit is contained in:
Nathan Freitas 2010-03-08 03:34:17 +00:00
parent e2f5ac0929
commit a0295c2803
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ public class SettingsPreferences
addPreferencesFromResource(R.xml.preferences);
if (!TorServiceUtils.hasRoot())
getPreferenceScreen().getPreference(3).setEnabled(false);
getPreferenceScreen().getPreference(0).setEnabled(false);
}
/* (non-Javadoc)