From 94a265a6b06518acb9e2bc8ca08212a2cf239f1e Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 7 Jun 2020 15:44:35 +0200 Subject: [PATCH] fix search, do not reset it at opening an item --- .../filemanager/pro/activities/MainActivity.kt | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MainActivity.kt index f39e31a3..46371d51 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MainActivity.kt @@ -70,16 +70,6 @@ class MainActivity : SimpleActivity() { } } - override fun onResume() { - super.onResume() - invalidateOptionsMenu() - } - - override fun onStop() { - super.onStop() - searchMenuItem?.collapseActionView() - } - override fun onDestroy() { super.onDestroy() config.temporarilyShowHidden = false @@ -309,10 +299,10 @@ class MainActivity : SimpleActivity() { val licenses = LICENSE_GLIDE or LICENSE_PATTERN or LICENSE_REPRINT or LICENSE_GESTURE_VIEWS val faqItems = arrayListOf( - FAQItem(R.string.faq_3_title_commons, R.string.faq_3_text_commons), - FAQItem(R.string.faq_2_title_commons, R.string.faq_2_text_commons), - FAQItem(R.string.faq_6_title_commons, R.string.faq_6_text_commons), - FAQItem(R.string.faq_7_title_commons, R.string.faq_7_text_commons) + FAQItem(R.string.faq_3_title_commons, R.string.faq_3_text_commons), + FAQItem(R.string.faq_2_title_commons, R.string.faq_2_text_commons), + FAQItem(R.string.faq_6_title_commons, R.string.faq_6_text_commons), + FAQItem(R.string.faq_7_title_commons, R.string.faq_7_text_commons) ) startAboutActivity(R.string.app_name, licenses, BuildConfig.VERSION_NAME, faqItems, true)