diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt index 471c57b2a..4b91853fa 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt @@ -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 } })