Added display options item to the top of the toolbar as well

This commit is contained in:
Jay 2020-05-02 14:31:54 -04:00
parent 8a1b8db614
commit 083686ce60
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -12,6 +12,13 @@
app:actionViewClass="androidx.appcompat.widget.SearchView"
app:showAsAction="collapseActionView|ifRoom" />
<item
android:id="@+id/action_display_options"
android:icon="@drawable/ic_tune_white_24dp"
android:title="@string/display_options"
app:showAsAction="ifRoom" />
<item
android:id="@+id/action_settings"
android:icon="@drawable/ic_settings_white_24dp"