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

Nathan Freitas nathan at freitas.net
Mon Mar 8 03:34:17 UTC 2010


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)



More information about the tor-commits mailing list