Make requested changes

This commit is contained in:
Laksh 2021-09-27 01:45:33 +05:30
parent bc3139e5f9
commit f52cb3bbe0
1 changed files with 3 additions and 2 deletions

View File

@ -91,9 +91,10 @@ class ContentSettingsManager(private val fileLocator: NewPipeFileLocator) {
is String -> {
preferenceEditor.putString(key, value)
}
is HashSet<*> -> {
is Set<*> -> {
// There are currently only Sets with type String possible
@Suppress("UNCHECKED_CAST")
preferenceEditor.putStringSet(key, value as MutableSet<String>?)
preferenceEditor.putStringSet(key, value as Set<String>?)
}
}
}