fixing a search menu item related crash

This commit is contained in:
tibbi 2018-10-17 18:35:09 +02:00
parent da6ccaba9b
commit 410ebd3762
1 changed files with 2 additions and 1 deletions

View File

@ -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
}