diff options
author | Arne Schwabe <arne@rfc2549.org> | 2023-05-08 22:45:38 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2023-05-09 12:22:56 +0200 |
commit | 2bb04a1f0cad2570845a96db4d1e30c441b16d09 (patch) | |
tree | caa72cde85284274871192d6f8f77283c6ecec61 /main/src/ui/java/de | |
parent | 8bb986f5149f1efdece68eec329b693795d8cf75 (diff) |
Allow setting remote control apps via managed configuration
Closes ##1610
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Diffstat (limited to 'main/src/ui/java/de')
-rw-r--r-- | main/src/ui/java/de/blinkt/openvpn/fragments/GeneralSettings.kt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/src/ui/java/de/blinkt/openvpn/fragments/GeneralSettings.kt b/main/src/ui/java/de/blinkt/openvpn/fragments/GeneralSettings.kt index 7db8cba6..3c878d4d 100644 --- a/main/src/ui/java/de/blinkt/openvpn/fragments/GeneralSettings.kt +++ b/main/src/ui/java/de/blinkt/openvpn/fragments/GeneralSettings.kt @@ -176,6 +176,10 @@ class GeneralSettings : PreferenceFragmentCompat(), Preference.OnPreferenceClick File("/system/lib/modules/tun.ko").length() > 10 override fun onPreferenceClick(preference: Preference): Boolean { + if (!mExtapp.checkAllowingModifyingRemoteControl(requireContext())) + { + return false; + } if (preference.key == "clearapi") { val builder = AlertDialog.Builder( requireContext() |