mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Show no results found if source returns no results and no error
This commit is contained in:
parent
75a750d779
commit
77aba1ed73
1 changed files with 4 additions and 0 deletions
|
@ -172,6 +172,10 @@ open class BrowseSourcePresenter(
|
|||
val mangas = second
|
||||
.map { networkToLocalManga(it, sourceId) }
|
||||
.filter { !prefs.hideInLibraryItems().get() || !it.favorite }
|
||||
if (mangas.isEmpty() && page == 1) {
|
||||
withUIContext { view?.onAddPageError(NoResultsException()) }
|
||||
return@onEach
|
||||
}
|
||||
initializeMangas(mangas)
|
||||
val items = mangas.map {
|
||||
BrowseSourceItem(it, browseAsList, sourceListType, outlineCovers)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue