mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
remove a redundant function
This commit is contained in:
parent
41b34d9056
commit
2f6579318b
2 changed files with 3 additions and 7 deletions
|
@ -46,7 +46,7 @@ ext {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.simplemobiletools:commons:3.12.14'
|
implementation 'com.simplemobiletools:commons:3.12.22'
|
||||||
implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.0'
|
implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.0'
|
||||||
implementation 'com.android.support:multidex:1.0.2'
|
implementation 'com.android.support:multidex:1.0.2'
|
||||||
implementation 'com.google.code.gson:gson:2.8.2'
|
implementation 'com.google.code.gson:gson:2.8.2'
|
||||||
|
|
|
@ -195,7 +195,7 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Medium>,
|
||||||
|
|
||||||
private fun checkDeleteConfirmation() {
|
private fun checkDeleteConfirmation() {
|
||||||
if (skipConfirmationDialog) {
|
if (skipConfirmationDialog) {
|
||||||
deleteConfirmed()
|
deleteFiles()
|
||||||
} else {
|
} else {
|
||||||
askConfirmDelete()
|
askConfirmDelete()
|
||||||
}
|
}
|
||||||
|
@ -204,13 +204,9 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Medium>,
|
||||||
private fun askConfirmDelete() {
|
private fun askConfirmDelete() {
|
||||||
DeleteWithRememberDialog(activity) {
|
DeleteWithRememberDialog(activity) {
|
||||||
skipConfirmationDialog = it
|
skipConfirmationDialog = it
|
||||||
deleteConfirmed()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun deleteConfirmed() {
|
|
||||||
deleteFiles()
|
deleteFiles()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun getCurrentPath() = media[selectedPositions.first()].path
|
private fun getCurrentPath() = media[selectedPositions.first()].path
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue