[tor-commits] [orbot/master] add resources for airplane mode/network disable

n8fr8 at torproject.org n8fr8 at torproject.org
Mon Aug 19 15:21:28 UTC 2013


commit 0a3cc50ce468679aa7c838bea2b81978cc9f0f09
Author: Nathan Freitas <nathan at freitas.net>
Date:   Mon Aug 19 09:34:27 2013 -0400

    add resources for airplane mode/network disable
---
 res/values/strings.xml  |    6 ++++++
 res/xml/preferences.xml |    9 +++++++++
 2 files changed, 15 insertions(+)

diff --git a/res/values/strings.xml b/res/values/strings.xml
index 9e07996..d2ea568 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -235,4 +235,10 @@
   <string name="powered_by">powered by The Tor Project  </string>
   <string name="btn_save_settings">Save Settings</string>
   <string name="no_internet_connection_tor">No internet connection; Tor is on standby...</string>
+  <string name="bandwidth_">Bandwidth:</string>
+  <string name="down">down</string>
+  <string name="up">up</string>
+  
+  <string name="pref_disable_network_title">Network Auto-Sleep</string>
+  <string name="pref_disable_network_summary">Put Tor to sleep when there is no network connectivity</string>
 </resources>
diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml
index 2f92046..dd0e49a 100644
--- a/res/xml/preferences.xml
+++ b/res/xml/preferences.xml
@@ -216,6 +216,15 @@ android:summary="@string/pref_use_sys_iptables_summary"
 android:enabled="true" 
 android:title="@string/pref_use_sys_iptables_title"/>
 
+
+<CheckBoxPreference
+android:defaultValue="false" 
+android:key="pref_disable_network"
+android:summary="@string/pref_disable_network_summary"
+android:enabled="true" 
+android:title="@string/pref_disable_network_title"/>
+
+
 <!-- 
 <CheckBoxPreference
 android:defaultValue="false" 





More information about the tor-commits mailing list