From bc3139e5f9baa8a7ce4339ca0504a2741c318cff Mon Sep 17 00:00:00 2001 From: Laksh Date: Sat, 25 Sep 2021 15:37:07 +0530 Subject: [PATCH] Fix Settings import --- .../org/schabi/newpipe/settings/ContentSettingsManager.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsManager.kt b/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsManager.kt index cb4c14796..e488dbdb4 100644 --- a/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsManager.kt +++ b/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsManager.kt @@ -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?) + } } } preferenceEditor.commit()