Merge pull request #7169 from laksh-21/fixSettingsImport
Fix Settings import
This commit is contained in:
commit
77e67a35dc
1 changed files with 5 additions and 0 deletions
|
|
@ -91,6 +91,11 @@ class ContentSettingsManager(private val fileLocator: NewPipeFileLocator) {
|
||||||
is String -> {
|
is String -> {
|
||||||
preferenceEditor.putString(key, value)
|
preferenceEditor.putString(key, value)
|
||||||
}
|
}
|
||||||
|
is Set<*> -> {
|
||||||
|
// There are currently only Sets with type String possible
|
||||||
|
@Suppress("UNCHECKED_CAST")
|
||||||
|
preferenceEditor.putStringSet(key, value as Set<String>?)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
preferenceEditor.commit()
|
preferenceEditor.commit()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue