Fix Settings import
This commit is contained in:
parent
c1f7b2653c
commit
bc3139e5f9
|
@ -91,6 +91,10 @@ class ContentSettingsManager(private val fileLocator: NewPipeFileLocator) {
|
||||||
is String -> {
|
is String -> {
|
||||||
preferenceEditor.putString(key, value)
|
preferenceEditor.putString(key, value)
|
||||||
}
|
}
|
||||||
|
is HashSet<*> -> {
|
||||||
|
@Suppress("UNCHECKED_CAST")
|
||||||
|
preferenceEditor.putStringSet(key, value as MutableSet<String>?)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
preferenceEditor.commit()
|
preferenceEditor.commit()
|
||||||
|
|
Loading…
Reference in New Issue