show the edit cab on initial selection
This commit is contained in:
parent
60596b7e5c
commit
53ed959e63
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList<Direc
|
|||
|
||||
override fun onPrepareActionMode(actionMode: ActionMode?, menu: Menu?): Boolean {
|
||||
val menuItem = menu?.findItem(R.id.cab_edit)
|
||||
menuItem?.isVisible = multiSelector.selectedPositions.size == 1
|
||||
menuItem?.isVisible = multiSelector.selectedPositions.size <= 1
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue