mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-27 03:27:51 +02:00
Fix Tag searching and Recommendations button
This commit is contained in:
@ -429,7 +429,7 @@ class MangaAllInOneController :
|
|||||||
private fun openRecommends() {
|
private fun openRecommends() {
|
||||||
val recommendsConfig = BrowseSourceController.RecommendsConfig(presenter.manga.title, presenter.manga.source)
|
val recommendsConfig = BrowseSourceController.RecommendsConfig(presenter.manga.title, presenter.manga.source)
|
||||||
|
|
||||||
parentController?.router?.pushController(
|
router?.pushController(
|
||||||
BrowseSourceController(
|
BrowseSourceController(
|
||||||
Bundle().apply {
|
Bundle().apply {
|
||||||
putParcelable(BrowseSourceController.RECOMMENDS_CONFIG, recommendsConfig)
|
putParcelable(BrowseSourceController.RECOMMENDS_CONFIG, recommendsConfig)
|
||||||
@ -818,7 +818,7 @@ class MangaAllInOneController :
|
|||||||
* @param query the search query to pass to the search controller
|
* @param query the search query to pass to the search controller
|
||||||
*/
|
*/
|
||||||
private fun performGlobalSearch(query: String) {
|
private fun performGlobalSearch(query: String) {
|
||||||
val router = parentController?.router ?: return
|
val router = router ?: return
|
||||||
router.pushController(GlobalSearchController(query).withFadeTransaction())
|
router.pushController(GlobalSearchController(query).withFadeTransaction())
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -845,7 +845,7 @@ class MangaAllInOneController :
|
|||||||
* @param query the search query to the parent controller
|
* @param query the search query to the parent controller
|
||||||
*/
|
*/
|
||||||
private fun performSearch(query: String) {
|
private fun performSearch(query: String) {
|
||||||
val router = parentController?.router ?: return
|
val router = router ?: return
|
||||||
|
|
||||||
if (router.backstackSize < 2) {
|
if (router.backstackSize < 2) {
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user