diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt index 25a95566a..a8ee3f75f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt @@ -61,8 +61,8 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: MutableList, override fun prepareActionMode(menu: Menu) { menu.apply { - findItem(R.id.cab_rename).isVisible = selectedPositions.size == 1 - findItem(R.id.cab_open_with).isVisible = selectedPositions.size == 1 + findItem(R.id.cab_rename).isVisible = isOneItemSelected() + findItem(R.id.cab_open_with).isVisible = isOneItemSelected() findItem(R.id.cab_confirm_selection).isVisible = isAGetIntent && allowMultiplePicks && selectedPositions.size > 0 checkHideBtnVisibility(this)