mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
rename directory cab_edit to cab_rename
This commit is contained in:
parent
1ed45dcc3d
commit
4abc2d4b59
2 changed files with 3 additions and 3 deletions
|
@ -64,7 +64,7 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList<Direc
|
|||
showProperties()
|
||||
true
|
||||
}
|
||||
R.id.cab_edit -> {
|
||||
R.id.cab_rename -> {
|
||||
editDir()
|
||||
true
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList<Direc
|
|||
|
||||
override fun onPrepareActionMode(actionMode: ActionMode?, menu: Menu): Boolean {
|
||||
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
|
||||
|
||||
checkHideBtnVisibility(menu, positions)
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
android:title="@string/unpin_folder"
|
||||
app:showAsAction="ifRoom"/>
|
||||
<item
|
||||
android:id="@+id/cab_edit"
|
||||
android:id="@+id/cab_rename"
|
||||
android:icon="@mipmap/rename"
|
||||
android:title="@string/rename"
|
||||
app:showAsAction="ifRoom"/>
|
||||
|
|
Loading…
Reference in a new issue