[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r21851: {projects} fixed the way disabling of certain settings works on non-roo (projects/android/trunk/Orbot/src/org/torproject/android)



Author: n8fr8
Date: 2010-03-08 03:34:17 +0000 (Mon, 08 Mar 2010)
New Revision: 21851

Modified:
   projects/android/trunk/Orbot/src/org/torproject/android/SettingsPreferences.java
Log:
fixed the way disabling of certain settings works on non-root devices

Modified: projects/android/trunk/Orbot/src/org/torproject/android/SettingsPreferences.java
===================================================================
--- projects/android/trunk/Orbot/src/org/torproject/android/SettingsPreferences.java	2010-03-07 17:22:51 UTC (rev 21850)
+++ projects/android/trunk/Orbot/src/org/torproject/android/SettingsPreferences.java	2010-03-08 03:34:17 UTC (rev 21851)
@@ -17,7 +17,7 @@
 		addPreferencesFromResource(R.xml.preferences);
 		
 		if (!TorServiceUtils.hasRoot())
-			getPreferenceScreen().getPreference(3).setEnabled(false);
+			getPreferenceScreen().getPreference(0).setEnabled(false);
 	}
 	
 	/* (non-Javadoc)