Implement plugin entirely in Kotlin
This commit is contained in:
@@ -143,7 +143,7 @@ class ProfileConfigFragment : PreferenceFragmentCompatDividers(), Toolbar.OnMenu
|
||||
override fun onPreferenceChange(preference: Preference?, newValue: Any?): Boolean = try {
|
||||
val selected = pluginConfiguration.selected
|
||||
pluginConfiguration = PluginConfiguration(pluginConfiguration.pluginsOptions +
|
||||
(pluginConfiguration.selected to PluginOptions(selected, newValue as String?)), selected)
|
||||
(pluginConfiguration.selected to PluginOptions(selected, newValue as? String?)), selected)
|
||||
DataStore.plugin = pluginConfiguration.toString()
|
||||
DataStore.dirty = true
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user