mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 16:40:32 +00:00
Make requested changes
This commit is contained in:
parent
bc3139e5f9
commit
f52cb3bbe0
@ -91,9 +91,10 @@ class ContentSettingsManager(private val fileLocator: NewPipeFileLocator) {
|
|||||||
is String -> {
|
is String -> {
|
||||||
preferenceEditor.putString(key, value)
|
preferenceEditor.putString(key, value)
|
||||||
}
|
}
|
||||||
is HashSet<*> -> {
|
is Set<*> -> {
|
||||||
|
// There are currently only Sets with type String possible
|
||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
preferenceEditor.putStringSet(key, value as MutableSet<String>?)
|
preferenceEditor.putStringSet(key, value as Set<String>?)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user