From 2813538601b2f60c3b6d98f536252b820201b22d Mon Sep 17 00:00:00 2001 From: Xcreen Date: Thu, 26 Dec 2024 17:30:32 +0100 Subject: [PATCH] Added setting to enable/disable nsd --- .../net/xcreen/restsms/fragments/SettingsFragment.kt | 8 ++++++++ .../main/java/net/xcreen/restsms/server/SMSServer.kt | 6 ++++-- .../java/net/xcreen/restsms/server/ServerService.kt | 2 ++ app/src/main/res/layout/fragment_settings.xml | 12 ++++++++++++ app/src/main/res/values/strings.xml | 1 + 5 files changed, 27 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/xcreen/restsms/fragments/SettingsFragment.kt b/app/src/main/java/net/xcreen/restsms/fragments/SettingsFragment.kt index d7e9f0e..c7e26b1 100644 --- a/app/src/main/java/net/xcreen/restsms/fragments/SettingsFragment.kt +++ b/app/src/main/java/net/xcreen/restsms/fragments/SettingsFragment.kt @@ -24,6 +24,7 @@ class SettingsFragment : Fragment() { val openBrowserCheckBox = rootView.findViewById(R.id.settings_open_browser_checkbox) val disableLoggingCheckBox = rootView.findViewById(R.id.settings_disable_logging_checkbox) val enableAuth = rootView.findViewById(R.id.settings_enable_auth) + val enableNSD = rootView.findViewById(R.id.settings_enable_nsd) val saveBtn = rootView.findViewById