mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
avoid doing any action on Search Collapsed during device rotation
This commit is contained in:
parent
29dce88943
commit
d69351fa99
1 changed files with 6 additions and 3 deletions
|
@ -274,10 +274,13 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
|||
return true
|
||||
}
|
||||
|
||||
// this triggers on device rotation too, avoid doing anything
|
||||
override fun onMenuItemActionCollapse(item: MenuItem?): Boolean {
|
||||
mIsSearchOpen = false
|
||||
media_refresh_layout.isEnabled = config.enablePullToRefresh
|
||||
searchQueryChanged("")
|
||||
if (mIsSearchOpen) {
|
||||
mIsSearchOpen = false
|
||||
media_refresh_layout.isEnabled = config.enablePullToRefresh
|
||||
searchQueryChanged("")
|
||||
}
|
||||
return true
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue