From 0b857609398906f0db33e8bb0ebf7049c7c41f84 Mon Sep 17 00:00:00 2001 From: len Date: Sun, 10 Sep 2017 10:51:21 +0200 Subject: [PATCH] Fix #908 --- .../eu/kanade/tachiyomi/ui/catalogue/CatalogueController.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueController.kt index edd51f174..a98ee3e2e 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueController.kt @@ -331,6 +331,11 @@ open class CatalogueController(bundle: Bundle? = null) : if (query == newQuery) return + // FIXME dirty fix to restore the toolbar buttons after closing search mode. + if (newQuery == "") { + activity?.invalidateOptionsMenu() + } + showProgressBar() adapter?.clear()