disable media pull-to-refresh while Search is open
This commit is contained in:
parent
b56d4d6600
commit
bd077cba8c
1 changed files with 2 additions and 0 deletions
|
@ -260,11 +260,13 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
|||
MenuItemCompat.setOnActionExpandListener(mSearchMenuItem, object : MenuItemCompat.OnActionExpandListener {
|
||||
override fun onMenuItemActionExpand(item: MenuItem?): Boolean {
|
||||
mIsSearchOpen = true
|
||||
media_refresh_layout.isEnabled = false
|
||||
return true
|
||||
}
|
||||
|
||||
override fun onMenuItemActionCollapse(item: MenuItem?): Boolean {
|
||||
mIsSearchOpen = false
|
||||
media_refresh_layout.isEnabled = config.enablePullToRefresh
|
||||
return true
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue