mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 15:41:52 +01:00
Change Library action bar action to expand filter sheet
This commit is contained in:
parent
a14c2d49db
commit
d96f0518f2
@ -1325,7 +1325,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()
|
||||
R.id.action_filter -> filter_bottom_sheet.sheetBehavior?.expand()
|
||||
else -> return super.onOptionsItemSelected(item)
|
||||
}
|
||||
return true
|
||||
|
@ -14,9 +14,9 @@
|
||||
|
||||
|
||||
<item
|
||||
android:id="@+id/action_display_options"
|
||||
android:icon="@drawable/ic_tune_24dp"
|
||||
android:title="@string/display_options"
|
||||
android:id="@+id/action_filter"
|
||||
android:icon="@drawable/ic_filter_list_24dp"
|
||||
android:title="@string/filter"
|
||||
app:showAsAction="ifRoom" />
|
||||
|
||||
<item
|
||||
|
Loading…
Reference in New Issue
Block a user