Merge branch 'dev' of github.com:OxygenCobalt/Auxio into dev
This commit is contained in:
commit
5707aa1d31
1 changed files with 2 additions and 0 deletions
|
@ -124,6 +124,8 @@ fun Toolbar.overrideOnOverflowMenuClick(block: (View) -> Unit) {
|
||||||
// The overflow menu's view implementation is package-private, so test for the
|
// The overflow menu's view implementation is package-private, so test for the
|
||||||
// first child that isn't a plain action button.
|
// first child that isn't a plain action button.
|
||||||
if (menuChild !is ActionMenuItemView) {
|
if (menuChild !is ActionMenuItemView) {
|
||||||
|
// Override all listeners related to opening the overflow menu.
|
||||||
|
menuChild.setOnTouchListener(null)
|
||||||
menuChild.setOnClickListener(block)
|
menuChild.setOnClickListener(block)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue