Show "no results found" error when search tracker doesn't find anything

This commit is contained in:
Jay 2020-05-17 05:29:03 -04:00
parent ea1087e3dc
commit 3d0f72d50b

View File

@ -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
)
)
)
}
}
}
}