Change Library action bar action to expand filter sheet

This commit is contained in:
Jays2Kings 2021-03-20 19:29:29 -04:00
parent a14c2d49db
commit d96f0518f2
2 changed files with 4 additions and 4 deletions

View File

@ -1325,7 +1325,7 @@ class LibraryController(
override fun onOptionsItemSelected(item: MenuItem): Boolean { override fun onOptionsItemSelected(item: MenuItem): Boolean {
when (item.itemId) { when (item.itemId) {
R.id.action_search -> expandActionViewFromInteraction = true R.id.action_search -> expandActionViewFromInteraction = true
R.id.action_display_options -> DisplayBottomSheet(this).show() R.id.action_filter -> filter_bottom_sheet.sheetBehavior?.expand()
else -> return super.onOptionsItemSelected(item) else -> return super.onOptionsItemSelected(item)
} }
return true return true

View File

@ -14,9 +14,9 @@
<item <item
android:id="@+id/action_display_options" android:id="@+id/action_filter"
android:icon="@drawable/ic_tune_24dp" android:icon="@drawable/ic_filter_list_24dp"
android:title="@string/display_options" android:title="@string/filter"
app:showAsAction="ifRoom" /> app:showAsAction="ifRoom" />
<item <item