mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-16 14:49:17 +01:00
Fix crash when opening chapter from BrowseSourceScreen (#8657)
This commit is contained in:
parent
beda99bbe0
commit
1a70ebe7ea
@ -256,10 +256,13 @@ data class BrowseSourceScreen(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private val queryEvent = Channel<SearchType>()
|
|
||||||
suspend fun search(query: String) = queryEvent.send(SearchType.Text(query))
|
suspend fun search(query: String) = queryEvent.send(SearchType.Text(query))
|
||||||
suspend fun searchGenre(name: String) = queryEvent.send(SearchType.Genre(name))
|
suspend fun searchGenre(name: String) = queryEvent.send(SearchType.Genre(name))
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
private val queryEvent = Channel<SearchType>()
|
||||||
|
}
|
||||||
|
|
||||||
sealed class SearchType(val txt: String) {
|
sealed class SearchType(val txt: String) {
|
||||||
class Text(txt: String) : SearchType(txt)
|
class Text(txt: String) : SearchType(txt)
|
||||||
class Genre(txt: String) : SearchType(txt)
|
class Genre(txt: String) : SearchType(txt)
|
||||||
|
Loading…
Reference in New Issue
Block a user