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