Show "no results found" error when search tracker doesn't find anything
This commit is contained in:
parent
ea1087e3dc
commit
3d0f72d50b
1 changed files with 10 additions and 0 deletions
|
@ -826,6 +826,16 @@ class MangaDetailsPresenter(
|
|||
}
|
||||
if (!results.isNullOrEmpty()) {
|
||||
withContext(Dispatchers.Main) { controller.onTrackSearchResults(results) }
|
||||
} else {
|
||||
withContext(Dispatchers.Main) {
|
||||
controller.trackSearchError(
|
||||
Exception(
|
||||
preferences.context.getString(
|
||||
R.string.no_results_found
|
||||
)
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue