Removed unchecked cast

This commit is contained in:
Sadwhy 2025-05-06 20:43:17 +06:00 committed by GitHub
parent 886690fc66
commit 1ec8565f14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -294,11 +294,6 @@ class Hikari : AnimeHttpSource(), ConfigurableAnimeSource {
entries = PREF_PROVIDERS
entryValues = PREF_PROVIDERS_VALUE
setDefaultValue(PREF_PROVIDERS_DEFAULT)
setOnPreferenceChangeListener { _, newValue ->
@Suppress("UNCHECKED_CAST")
preferences.edit().putStringSet(key, newValue as Set<String>).commit()
}
}.also(screen::addPreference)
ListPreference(screen.context).apply {