fix(all/yomiroll): Crash on local token toggle (#2726)
This commit is contained in:
@ -8,7 +8,7 @@ ext {
|
|||||||
extName = 'Yomiroll'
|
extName = 'Yomiroll'
|
||||||
pkgNameSuffix = 'all.kamyroll'
|
pkgNameSuffix = 'all.kamyroll'
|
||||||
extClass = '.Yomiroll'
|
extClass = '.Yomiroll'
|
||||||
extVersionCode = 25
|
extVersionCode = 26
|
||||||
libVersion = '13'
|
libVersion = '13'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -513,11 +513,9 @@ class Yomiroll : ConfigurableAnimeSource, AnimeHttpSource() {
|
|||||||
setOnPreferenceChangeListener { _, newValue ->
|
setOnPreferenceChangeListener { _, newValue ->
|
||||||
val new = newValue as Boolean
|
val new = newValue as Boolean
|
||||||
preferences.edit().putBoolean(key, new).commit().also {
|
preferences.edit().putBoolean(key, new).commit().also {
|
||||||
Thread {
|
|
||||||
summary = runBlocking {
|
summary = runBlocking {
|
||||||
withContext(Dispatchers.IO) { getTokenDetail(true) }
|
withContext(Dispatchers.IO) { getTokenDetail(true) }
|
||||||
}
|
}
|
||||||
}.start()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user