measure recyclerview on items update + crashfix
This commit is contained in:
parent
744af8a8e6
commit
3771cc4c31
1 changed files with 5 additions and 0 deletions
|
@ -430,6 +430,10 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
|
|||
}
|
||||
|
||||
private fun deleteFiles() {
|
||||
if (selectedPositions.isEmpty()) {
|
||||
return
|
||||
}
|
||||
|
||||
val files = ArrayList<FileDirItem>(selectedPositions.size)
|
||||
val removeFiles = ArrayList<FileDirItem>(selectedPositions.size)
|
||||
val SAFPath = fileDirItems[selectedPositions.first()].path
|
||||
|
@ -465,6 +469,7 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
|
|||
fileDirItems = newItems.clone() as ArrayList<FileDirItem>
|
||||
notifyDataSetChanged()
|
||||
finishActMode()
|
||||
fastScroller?.measureRecyclerView()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue