mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2024-12-27 16:55:03 +01:00
remove some redundant functions
This commit is contained in:
parent
ad481bfe40
commit
99666b0173
@ -73,8 +73,8 @@ class MediaAdapter(val activity: SimpleActivity, var media: MutableList<Medium>,
|
||||
R.id.cab_rename -> renameFile()
|
||||
R.id.cab_edit -> editFile()
|
||||
R.id.cab_share -> shareMedia()
|
||||
R.id.cab_copy_to -> copyTo()
|
||||
R.id.cab_move_to -> moveTo()
|
||||
R.id.cab_copy_to -> copyMoveTo(true)
|
||||
R.id.cab_move_to -> copyMoveTo(false)
|
||||
R.id.cab_select_all -> selectAll()
|
||||
R.id.cab_delete -> askConfirmDelete()
|
||||
else -> return false
|
||||
@ -151,14 +151,6 @@ class MediaAdapter(val activity: SimpleActivity, var media: MutableList<Medium>,
|
||||
}
|
||||
}
|
||||
|
||||
private fun copyTo() {
|
||||
copyMoveTo(true)
|
||||
}
|
||||
|
||||
private fun moveTo() {
|
||||
copyMoveTo(false)
|
||||
}
|
||||
|
||||
fun selectAll() {
|
||||
val cnt = media.size
|
||||
for (i in 0..cnt - 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user