mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-01-27 08:51:18 +01:00
measure recyclerview on items update + crashfix
This commit is contained in:
parent
744af8a8e6
commit
3771cc4c31
@ -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…
x
Reference in New Issue
Block a user