From f52cb3bbe0785fc6050f286c527f9c5a8052922a Mon Sep 17 00:00:00 2001 From: Laksh Date: Mon, 27 Sep 2021 01:45:33 +0530 Subject: [PATCH] Make requested changes --- .../org/schabi/newpipe/settings/ContentSettingsManager.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 e488dbdb4..6bc63a56a 100644 --- a/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsManager.kt +++ b/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsManager.kt @@ -91,9 +91,10 @@ class ContentSettingsManager(private val fileLocator: NewPipeFileLocator) { is String -> { preferenceEditor.putString(key, value) } - is HashSet<*> -> { + is Set<*> -> { + // There are currently only Sets with type String possible @Suppress("UNCHECKED_CAST") - preferenceEditor.putStringSet(key, value as MutableSet?) + preferenceEditor.putStringSet(key, value as Set?) } } }