summaryrefslogtreecommitdiffhomepage
path: root/app/src/main
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
commit5023c937adb71a91b5fd092533a1beb899bf97bc (patch)
tree265fb84541ba70ce122a43e17b42481f76e6550c /app/src/main
parentb753ae09ca88e60891e2b6da7022e0059b33baf6 (diff)
preferences: Control restoring enabled configs
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main')
-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>