diff --git a/app/build.gradle b/app/build.gradle index efa3dfae..494396bc 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -45,7 +45,7 @@ ext { } dependencies { - implementation 'com.simplemobiletools:commons:3.9.4' + implementation 'com.simplemobiletools:commons:3.11.6' implementation files('../libs/RootTools.jar') 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 f8e280eb..a890ee59 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/activities/MainActivity.kt @@ -75,9 +75,7 @@ class MainActivity : SimpleActivity() { override fun onStop() { super.onStop() - if (searchMenuItem != null) { - MenuItemCompat.collapseActionView(searchMenuItem) - } + searchMenuItem?.collapseActionView() } override fun onDestroy() {