Preferences: give dual state summary for restore on boot

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2020-03-09 14:54:20 -06:00
parent 8996979dc2
commit d61f17dbd3
2 changed files with 4 additions and 2 deletions

View File

@ -126,7 +126,8 @@
<string name="public_key">Public key</string> <string name="public_key">Public key</string>
<string name="public_key_description">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="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="restore_on_boot_title">Restore on boot</string>
<string name="save">Save</string> <string name="save">Save</string>
<string name="select_all">Select all</string> <string name="select_all">Select all</string>

View File

@ -4,7 +4,8 @@
<CheckBoxPreference <CheckBoxPreference
android:defaultValue="false" android:defaultValue="false"
android:key="restore_on_boot" 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" /> android:title="@string/restore_on_boot_title" />
<CheckBoxPreference <CheckBoxPreference
android:defaultValue="false" android:defaultValue="false"