From a0295c280394c18e3cf8f4558f0c5e1cb68fef7b Mon Sep 17 00:00:00 2001 From: Nathan Freitas Date: Mon, 8 Mar 2010 03:34:17 +0000 Subject: [PATCH] fixed the way disabling of certain settings works on non-root devices svn:r21851 --- src/org/torproject/android/SettingsPreferences.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/torproject/android/SettingsPreferences.java b/src/org/torproject/android/SettingsPreferences.java index 8137548b..a61c5d9d 100644 --- a/src/org/torproject/android/SettingsPreferences.java +++ b/src/org/torproject/android/SettingsPreferences.java @@ -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)