From 083686ce60c7b298bc465f4a2d3efc3b4041fe7d Mon Sep 17 00:00:00 2001 From: Jay Date: Sat, 2 May 2020 14:31:54 -0400 Subject: [PATCH] Added display options item to the top of the toolbar as well --- .../eu/kanade/tachiyomi/ui/library/LibraryController.kt | 1 + app/src/main/res/menu/library.xml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt index 9824d8c721..456198e44d 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt @@ -898,6 +898,7 @@ class LibraryController( override fun onOptionsItemSelected(item: MenuItem): Boolean { when (item.itemId) { R.id.action_search -> expandActionViewFromInteraction = true + R.id.action_display_options -> DisplayBottomSheet(this).show() else -> return super.onOptionsItemSelected(item) } return true diff --git a/app/src/main/res/menu/library.xml b/app/src/main/res/menu/library.xml index a9a36a3a93..32f4b42565 100644 --- a/app/src/main/res/menu/library.xml +++ b/app/src/main/res/menu/library.xml @@ -12,6 +12,13 @@ app:actionViewClass="androidx.appcompat.widget.SearchView" app:showAsAction="collapseActionView|ifRoom" /> + + +