From 5725fb1c5894e2a4d29f085218adc930150a9c64 Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Mon, 3 May 2021 16:01:01 -0400 Subject: [PATCH] Fix search toolbar show on latest updates in source --- .../tachiyomi/ui/source/latest/LatestUpdatesController.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/source/latest/LatestUpdatesController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/source/latest/LatestUpdatesController.kt index 62d52165e1..63f140c14b 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/source/latest/LatestUpdatesController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/source/latest/LatestUpdatesController.kt @@ -20,6 +20,10 @@ class LatestUpdatesController(bundle: Bundle) : BrowseSourceController(bundle) { } ) + override fun getTitle(): String { + return presenter.source.name + } + override fun onViewCreated(view: View) { super.onViewCreated(view) binding.fab.isVisible = false @@ -29,6 +33,8 @@ class LatestUpdatesController(bundle: Bundle) : BrowseSourceController(bundle) { return LatestUpdatesPresenter(args.getLong(SOURCE_ID_KEY)) } + override fun showFloatingBar() = false + override fun onPrepareOptionsMenu(menu: Menu) { super.onPrepareOptionsMenu(menu) menu.findItem(R.id.action_search).isVisible = false