From 410ebd376279f6044c7a8bcc5e310001730f2511 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 17 Oct 2018 18:35:09 +0200 Subject: [PATCH] fixing a search menu item related crash --- .../com/simplemobiletools/gallery/activities/MainActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt index 635f68603..414c8df12 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -251,12 +251,13 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { menu.apply { findItem(R.id.increase_column_count).isVisible = config.viewTypeFolders == VIEW_TYPE_GRID && config.dirColumnCnt < MAX_COLUMN_COUNT findItem(R.id.reduce_column_count).isVisible = config.viewTypeFolders == VIEW_TYPE_GRID && config.dirColumnCnt > 1 + setupSearch(this) } } menu.findItem(R.id.temporarily_show_hidden).isVisible = !config.shouldShowHidden menu.findItem(R.id.stop_showing_hidden).isVisible = config.temporarilyShowHidden - setupSearch(menu) + return true }