From 4cbe49777015632816ea7b180d443805f7de980b Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 3 Oct 2020 13:04:38 -0400 Subject: [PATCH] Prevent tag search if browsing from latest (sort of closes #3625) --- .../java/eu/kanade/tachiyomi/ui/manga/MangaController.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt index 0e46fb393..578a5b09d 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt @@ -47,6 +47,7 @@ import eu.kanade.tachiyomi.ui.base.controller.withFadeTransaction import eu.kanade.tachiyomi.ui.browse.migration.search.SearchController import eu.kanade.tachiyomi.ui.browse.source.browse.BrowseSourceController import eu.kanade.tachiyomi.ui.browse.source.globalsearch.GlobalSearchController +import eu.kanade.tachiyomi.ui.browse.source.latest.LatestUpdatesController import eu.kanade.tachiyomi.ui.library.ChangeMangaCategoriesDialog import eu.kanade.tachiyomi.ui.library.ChangeMangaCoverDialog import eu.kanade.tachiyomi.ui.library.LibraryController @@ -570,6 +571,10 @@ class MangaController : val controller = router.getControllerWithTag(R.id.nav_library.toString()) as LibraryController controller.search(query) } + is LatestUpdatesController -> { + // Search doesn't currently work in source Latest view + return + } is BrowseSourceController -> { router.handleBack() previousController.searchWithQuery(query)