Fix search toolbar show on latest updates in source

This commit is contained in:
Jays2Kings 2021-05-03 16:01:01 -04:00
parent 970df326e8
commit 5725fb1c58

View File

@ -20,6 +20,10 @@ class LatestUpdatesController(bundle: Bundle) : BrowseSourceController(bundle) {
} }
) )
override fun getTitle(): String {
return presenter.source.name
}
override fun onViewCreated(view: View) { override fun onViewCreated(view: View) {
super.onViewCreated(view) super.onViewCreated(view)
binding.fab.isVisible = false binding.fab.isVisible = false
@ -29,6 +33,8 @@ class LatestUpdatesController(bundle: Bundle) : BrowseSourceController(bundle) {
return LatestUpdatesPresenter(args.getLong(SOURCE_ID_KEY)) return LatestUpdatesPresenter(args.getLong(SOURCE_ID_KEY))
} }
override fun showFloatingBar() = false
override fun onPrepareOptionsMenu(menu: Menu) { override fun onPrepareOptionsMenu(menu: Menu) {
super.onPrepareOptionsMenu(menu) super.onPrepareOptionsMenu(menu)
menu.findItem(R.id.action_search).isVisible = false menu.findItem(R.id.action_search).isVisible = false