diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/activities/MainActivity.kt index d3bd4fed..308f7714 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/activities/MainActivity.kt @@ -75,6 +75,13 @@ class MainActivity : SimpleActivity() { storeStateVariables() } + override fun onStop() { + super.onStop() + if (searchMenuItem != null) { + MenuItemCompat.collapseActionView(searchMenuItem) + } + } + override fun onDestroy() { super.onDestroy() config.temporarilyShowHidden = false