properly update selectable item count at creating a new file/folder

This commit is contained in:
tibbi 2017-11-19 18:35:23 +01:00
parent 7f31975053
commit 43ebc7add1
2 changed files with 2 additions and 1 deletions

View File

@ -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')

View File

@ -383,6 +383,7 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
fun updateItems(newItems: MutableList<FileDirItem>) {
fileDirItems = newItems
selectableItemCount = fileDirItems.size
notifyDataSetChanged()
finishActMode()
}