Skip to content

Commit 43ebc7a

Browse files
committed
properly update selectable item count at creating a new file/folder
1 parent 7f31975 commit 43ebc7a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ext {
4646
}
4747

4848
dependencies {
49-
implementation 'com.simplemobiletools:commons:2.41.1'
49+
implementation 'com.simplemobiletools:commons:2.41.2'
5050

5151
implementation files('../libs/RootTools.jar')
5252

app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
383383

384384
fun updateItems(newItems: MutableList<FileDirItem>) {
385385
fileDirItems = newItems
386+
selectableItemCount = fileDirItems.size
386387
notifyDataSetChanged()
387388
finishActMode()
388389
}

0 commit comments

Comments
 (0)