From cc5a5988eafadb68864e5a98850f6c9728b35dfb Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 2 Jul 2018 10:17:22 +0200 Subject: [PATCH] adding a toast at deleting media thumbnails until a glitch gets fixed --- app/build.gradle | 2 +- .../com/simplemobiletools/gallery/activities/MediaActivity.kt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index b8f3bc842..598e05350 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -47,7 +47,7 @@ ext { } dependencies { - implementation 'com.simplemobiletools:commons:4.3.21' + implementation 'com.simplemobiletools:commons:4.3.22' implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.0' implementation 'com.android.support:multidex:1.0.3' implementation 'it.sephiroth.android.exif:library:1.0.1' diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt index fbcca3d2d..11d2f36ad 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt @@ -813,6 +813,9 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener { override fun tryDeleteFiles(fileDirItems: ArrayList) { val filtered = fileDirItems.filter { it.path.isImageVideoGif() } as ArrayList + val deletingItems = resources.getQuantityString(R.plurals.deleting_items, filtered.size, filtered.size) + toast(deletingItems) + if (config.useRecycleBin && !filtered.first().path.startsWith(filesDir.toString())) { movePathsInRecycleBin(filtered.map { it.path } as ArrayList) { if (it) {