show the edit cab on initial selection

This commit is contained in:
tibbi 2016-11-17 11:14:15 +01:00
parent 60596b7e5c
commit 53ed959e63

View file

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