mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-09-21 03:54:03 +00:00
Fix Settings import
This commit is contained in:
@@ -91,6 +91,10 @@ class ContentSettingsManager(private val fileLocator: NewPipeFileLocator) {
|
||||
is String -> {
|
||||
preferenceEditor.putString(key, value)
|
||||
}
|
||||
is HashSet<*> -> {
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
preferenceEditor.putStringSet(key, value as MutableSet<String>?)
|
||||
}
|
||||
}
|
||||
}
|
||||
preferenceEditor.commit()
|
||||
|
Reference in New Issue
Block a user