From fa4b5e8c373ff19d8cc96f5bb7f636598ff279cd Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Sat, 25 May 2013 11:49:49 +0200 Subject: Implement Option to pause VPN when screen is off (closes issue #162) --HG-- rename : src/de/blinkt/openvpn/core/NetworkStateReceiver.java => src/de/blinkt/openvpn/core/DeviceStateReceiver.java --- res/values/strings.xml | 4 ++++ res/xml/general_settings.xml | 17 ++++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) (limited to 'res') diff --git a/res/values/strings.xml b/res/values/strings.xml index 56dde3a8..de9bbcb3 100755 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -278,5 +278,9 @@ No app allowed to use external API Allowed apps: %s Clear list of allowed external apps?\nCurrent list of allowed apps:\n\n%s + "Pause VPN when screen is off and less than 64 kB transferred data in 60s." + Pause VPN connection after screen off + Pausing connection in screen off state: less than %1$s in %2$ss + ERROR: Persistent tun not enabled for this VPN. Ignoring option to pause VPN when screen is off \ No newline at end of file diff --git a/res/xml/general_settings.xml b/res/xml/general_settings.xml index 6dbf58bf..9aa62956 100644 --- a/res/xml/general_settings.xml +++ b/res/xml/general_settings.xml @@ -11,13 +11,6 @@ android:key="showlogwindow" android:summary="@string/show_log_summary" android:title="@string/show_log_window" /> - + + + android:persistent="false" + android:title="Clear allowed external apps" />