aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/res
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2017-08-16 04:37:11 -0500
committerSamuel Holland <samuel@sholland.org>2017-08-16 04:37:11 -0500
commit2968fd43140f16fcea37d52970ba12e43fdb0cbd (patch)
tree265fb84541ba70ce122a43e17b42481f76e6550c /app/src/main/res
parentVpnService: Remember and optionally restore enabled configs (diff)
downloadwireguard-android-2968fd43140f16fcea37d52970ba12e43fdb0cbd.tar.xz
wireguard-android-2968fd43140f16fcea37d52970ba12e43fdb0cbd.zip
preferences: Control restoring enabled configs
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/values/strings.xml2
-rw-r--r--app/src/main/res/xml/preferences.xml5
2 files changed, 7 insertions, 0 deletions
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 20fa1e5f..2c0ce517 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -24,6 +24,8 @@
<string name="primary_config_summary">This configuration will be controlled by the quick settings tile</string>
<string name="private_key">Private key</string>
<string name="public_key">Public key</string>
+ <string name="restore_on_boot">Restore on boot</string>
+ <string name="restore_on_boot_summary">Restore previously enabled configurations on boot</string>
<string name="save">Save</string>
<string name="settings">Settings</string>
<string name="status">Status</string>
diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml
index 09c32942..95683a16 100644
--- a/app/src/main/res/xml/preferences.xml
+++ b/app/src/main/res/xml/preferences.xml
@@ -4,4 +4,9 @@
android:key="primary_config"
android:summary="@string/primary_config_summary"
android:title="@string/primary_config" />
+ <CheckBoxPreference
+ android:defaultValue="false"
+ android:key="restore_on_boot"
+ android:summary="@string/restore_on_boot_summary"
+ android:title="@string/restore_on_boot" />
</PreferenceScreen>