From 43ebc7add11a2320667572e547c4436c33a52cf8 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 19 Nov 2017 18:35:23 +0100 Subject: [PATCH] properly update selectable item count at creating a new file/folder --- app/build.gradle | 2 +- .../com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 94d8a67b..b27805ba 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -46,7 +46,7 @@ ext { } dependencies { - implementation 'com.simplemobiletools:commons:2.41.1' + implementation 'com.simplemobiletools:commons:2.41.2' implementation files('../libs/RootTools.jar') diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt index b548b853..dfc1ab69 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt @@ -383,6 +383,7 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList) { fileDirItems = newItems + selectableItemCount = fileDirItems.size notifyDataSetChanged() finishActMode() }