Removed unchecked cast
This commit is contained in:
parent
886690fc66
commit
1ec8565f14
1 changed files with 0 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue