summaryrefslogtreecommitdiffhomepage
path: root/ui/src/main/res
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-03-09 15:19:02 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-03-09 15:21:34 -0600
commit492fcce0530028952e787aaec266b223b4305bde (patch)
tree16c807b3c34a3baacca5c6433c87fe12d034a5d1 /ui/src/main/res
parentd61f17dbd3ce45fc56654d2475499f7dcb277f30 (diff)
KernelModuleDisabler: allow disabling the kernel module backend
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/src/main/res')
-rw-r--r--ui/src/main/res/values/strings.xml5
-rw-r--r--ui/src/main/res/xml/preferences.xml1
2 files changed, 6 insertions, 0 deletions
diff --git a/ui/src/main/res/values/strings.xml b/ui/src/main/res/values/strings.xml
index 13aa1b6d..71d88930 100644
--- a/ui/src/main/res/values/strings.xml
+++ b/ui/src/main/res/values/strings.xml
@@ -103,6 +103,11 @@
<string name="module_installer_title">Download and install kernel module</string>
<string name="module_installer_working">Downloading and installing…</string>
<string name="module_installer_error">Something went wrong. Please try again</string>
+ <string name="module_disabler_disabled_title">Enable kernel module backend</string>
+ <string name="module_disabler_disabled_summary">The experimental kernel module can improve performance</string>
+ <string name="module_disabler_enabled_title">Disable kernel module backend</string>
+ <string name="module_disabler_enabled_summary">The slower userspace backend may improve stability</string>
+ <string name="module_disabler_working">The application will restart in 5 seconds</string>
<string name="mtu">MTU</string>
<string name="multiple_tunnels_title">Allow multiple simultaneous tunnels</string>
<string name="multiple_tunnels_summary_on">Multiple tunnels may be turned on simultaneously</string>
diff --git a/ui/src/main/res/xml/preferences.xml b/ui/src/main/res/xml/preferences.xml
index 670c8665..d7955052 100644
--- a/ui/src/main/res/xml/preferences.xml
+++ b/ui/src/main/res/xml/preferences.xml
@@ -23,4 +23,5 @@
android:summaryOff="@string/dark_theme_summary_off"
android:summaryOn="@string/dark_theme_summary_on"
android:title="@string/dark_theme_title" />
+ <com.wireguard.android.preference.KernelModuleDisablerPreference android:key="kernel_module_disabler" />
</androidx.preference.PreferenceScreen>