From b3500ee2d1cf1c8a83a786943eaa4a2973865cca 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 --- Orbot/src/org/torproject/android/SettingsPreferences.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Orbot/src/org/torproject/android/SettingsPreferences.java b/Orbot/src/org/torproject/android/SettingsPreferences.java index 8137548b..a61c5d9d 100644 --- a/Orbot/src/org/torproject/android/SettingsPreferences.java +++ b/Orbot/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)