Disable supportsPredictiveItemAnimations

This commit is contained in:
Lucas Lima 2020-04-24 00:24:40 -03:00
parent d3ab7dbe95
commit 2c86e2f91e
No known key found for this signature in database
GPG key ID: C5EEF4C30BFBF8D7

View file

@ -32,7 +32,7 @@ class FixedGridLayoutManager(
private var firstChangedPosition = 0
private var changedPositionCount = 0
override fun supportsPredictiveItemAnimations(): Boolean = true
override fun supportsPredictiveItemAnimations(): Boolean = false
override fun onItemsRemoved(recyclerView: RecyclerView, positionStart: Int, itemCount: Int) {
firstChangedPosition = positionStart