1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-06-25 22:53:20 +00:00

Fix Settings import

This commit is contained in:
Laksh 2021-09-25 15:37:07 +05:30
parent c1f7b2653c
commit bc3139e5f9

View File

@ -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()