Fix Crash when clicking on the 'Enable Remote Control' checkbox

This commit is contained in:
Pasindu Akalpa 2023-10-09 07:53:48 +05:30
parent b1caf739e7
commit 0cc14edb6e
No known key found for this signature in database
GPG Key ID: 064731E5B3F057C3
1 changed files with 1 additions and 1 deletions

View File

@ -300,7 +300,7 @@ class SettingsFragment : PreferenceFragmentCompat(), SharedPreferences.OnSharedP
"remoteEnable" -> {
val isRemote = sharedPreferences.getBoolean(key, false)
BOINCActivity.monitor!!.isRemote = isRemote
findPreference<EditTextPreference>("authenticationKey")?.isVisible = isRemote
findPreference<Preference>("authenticationKey")?.isVisible = isRemote
quitClient()
}