From 08764e9db35beff67db3d901cfc1ce38cf5c3e18 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 17 Mar 2017 23:42:24 +0100 Subject: [PATCH] update the item count at thumbnails after delete --- .../com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt | 1 + .../com/simplemobiletools/gallery/adapters/MediaAdapter.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt index e0c29ebb4..48d8e64d8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt @@ -294,6 +294,7 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList, media.removeAll(removeMedia) markedItems.clear() listener?.deleteFiles(files) + itemCnt = media.size } }