mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 16:01:48 +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 {
|
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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user