diff --git a/app/build.gradle b/app/build.gradle index af7d9778d..cf8c2d5be 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -46,7 +46,7 @@ ext { } 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.android.support:multidex:1.0.2' implementation 'com.google.code.gson:gson:2.8.2' diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt index 4a7c2a5c2..1ecba1dab 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt @@ -195,7 +195,7 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList, private fun checkDeleteConfirmation() { if (skipConfirmationDialog) { - deleteConfirmed() + deleteFiles() } else { askConfirmDelete() } @@ -204,14 +204,10 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList, private fun askConfirmDelete() { DeleteWithRememberDialog(activity) { skipConfirmationDialog = it - deleteConfirmed() + deleteFiles() } } - private fun deleteConfirmed() { - deleteFiles() - } - private fun getCurrentPath() = media[selectedPositions.first()].path private fun deleteFiles() {