mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-17 04:10:39 +01:00
do not animate the views at updating the folder children count
This commit is contained in:
parent
f4388d7d8b
commit
d395aab484
@ -723,7 +723,7 @@ class ItemsAdapter(activity: SimpleActivity, var listItems: MutableList<ListItem
|
||||
val position = getItemKeyPosition(path.hashCode())
|
||||
val item = listItems.getOrNull(position) ?: return
|
||||
item.children = count
|
||||
notifyItemChanged(position)
|
||||
notifyItemChanged(position, Unit)
|
||||
}
|
||||
|
||||
fun isASectionTitle(position: Int) = listItems.getOrNull(position)?.isSectionTitle ?: false
|
||||
|
Loading…
x
Reference in New Issue
Block a user