rename directory cab_edit to cab_rename

This commit is contained in:
tibbi 2016-12-06 22:40:09 +01:00
parent 1ed45dcc3d
commit 4abc2d4b59
2 changed files with 3 additions and 3 deletions

View file

@ -64,7 +64,7 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList<Direc
showProperties() showProperties()
true true
} }
R.id.cab_edit -> { R.id.cab_rename -> {
editDir() editDir()
true true
} }
@ -109,7 +109,7 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList<Direc
override fun onPrepareActionMode(actionMode: ActionMode?, menu: Menu): Boolean { override fun onPrepareActionMode(actionMode: ActionMode?, menu: Menu): Boolean {
val positions = multiSelector.selectedPositions val positions = multiSelector.selectedPositions
val menuItem = menu.findItem(R.id.cab_edit) val menuItem = menu.findItem(R.id.cab_rename)
menuItem.isVisible = positions.size <= 1 menuItem.isVisible = positions.size <= 1
checkHideBtnVisibility(menu, positions) checkHideBtnVisibility(menu, positions)

View file

@ -17,7 +17,7 @@
android:title="@string/unpin_folder" android:title="@string/unpin_folder"
app:showAsAction="ifRoom"/> app:showAsAction="ifRoom"/>
<item <item
android:id="@+id/cab_edit" android:id="@+id/cab_rename"
android:icon="@mipmap/rename" android:icon="@mipmap/rename"
android:title="@string/rename" android:title="@string/rename"
app:showAsAction="ifRoom"/> app:showAsAction="ifRoom"/>