mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-13 00:55:08 +01:00
Show "no results found" error when search tracker doesn't find anything
This commit is contained in:
parent
ea1087e3dc
commit
3d0f72d50b
@ -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
|
||||
)
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user