mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 08:18:00 +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()
|
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)
|
||||||
|
|
|
@ -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"/>
|
||||||
|
|
Loading…
Reference in a new issue