summaryrefslogtreecommitdiffhomepage
path: root/ui/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-03-09 14:54:20 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-03-09 14:54:20 -0600
commitd61f17dbd3ce45fc56654d2475499f7dcb277f30 (patch)
tree1e18099606ba5269192befdcf6ab05a74cbbbef0 /ui/src
parent8996979dc2c34b0e301aeca69df9ee757d8a7e2c (diff)
Preferences: give dual state summary for restore on boot
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/src')
-rw-r--r--ui/src/main/res/values/strings.xml3
-rw-r--r--ui/src/main/res/xml/preferences.xml3
2 files changed, 4 insertions, 2 deletions
diff --git a/ui/src/main/res/values/strings.xml b/ui/src/main/res/values/strings.xml
index 5df74017..13aa1b6d 100644
--- a/ui/src/main/res/values/strings.xml
+++ b/ui/src/main/res/values/strings.xml
@@ -126,7 +126,8 @@
<string name="public_key">Public key</string>
<string name="public_key_description">Public key</string>
<string name="qr_code_hint">Tip: generate with `qrencode -t ansiutf8 &lt; tunnel.conf`.</string>
- <string name="restore_on_boot_summary">Bring up previously-enabled tunnels on boot</string>
+ <string name="restore_on_boot_summary_on">Will bring up enabled tunnels at boot</string>
+ <string name="restore_on_boot_summary_off">Will not bring up enabled tunnels at boot</string>
<string name="restore_on_boot_title">Restore on boot</string>
<string name="save">Save</string>
<string name="select_all">Select all</string>
diff --git a/ui/src/main/res/xml/preferences.xml b/ui/src/main/res/xml/preferences.xml
index 0811783d..670c8665 100644
--- a/ui/src/main/res/xml/preferences.xml
+++ b/ui/src/main/res/xml/preferences.xml
@@ -4,7 +4,8 @@
<CheckBoxPreference
android:defaultValue="false"
android:key="restore_on_boot"
- android:summary="@string/restore_on_boot_summary"
+ android:summaryOn="@string/restore_on_boot_summary_on"
+ android:summaryOff="@string/restore_on_boot_summary_off"
android:title="@string/restore_on_boot_title" />
<CheckBoxPreference
android:defaultValue="false"