diff options
author | Arne Schwabe <arne@rfc2549.org> | 2022-05-03 16:10:30 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2022-05-04 08:21:15 +0200 |
commit | 5303c1ab56ed2acbad3ec46ae4a3de290cc2f402 (patch) | |
tree | 97b2ae12b932a0363eecb68148d85c3cad6cc238 /main/src/ui/java/de/blinkt/openvpn/fragments/GeneralSettings.kt | |
parent | b42b938764d35a740c68fdf98d0583eea791299c (diff) |
Update gradle modules and dependencies
Diffstat (limited to 'main/src/ui/java/de/blinkt/openvpn/fragments/GeneralSettings.kt')
-rw-r--r-- | main/src/ui/java/de/blinkt/openvpn/fragments/GeneralSettings.kt | 6 |
1 files changed, 4 insertions, 2 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 24734eb1..0842925d 100644 --- a/main/src/ui/java/de/blinkt/openvpn/fragments/GeneralSettings.kt +++ b/main/src/ui/java/de/blinkt/openvpn/fragments/GeneralSettings.kt @@ -50,9 +50,11 @@ class GeneralSettings : PreferenceFragmentCompat(), Preference.OnPreferenceClick devHacks.removePreference(useInternalFS) } - /* Android P does not allow access to the file storage anymore */if (Build.VERSION.SDK_INT > Build.VERSION_CODES.P) { + /* Android P does not allow access to the file storage anymore */ + if (Build.VERSION.SDK_INT > Build.VERSION_CODES.P) { val useInternalFileSelector = findPreference<Preference>("useInternalFileSelector") - devHacks.removePreference(useInternalFileSelector) + if (useInternalFileSelector != null) + devHacks.removePreference(useInternalFileSelector) } mExtapp = ExternalAppDatabase(activity) val clearapi = findPreference<Preference>("clearapi") as Preference |