Fix use of deprecated functions

This commit is contained in:
Lucas Lima 2020-12-12 19:39:28 -03:00
parent 3cb29f3aaa
commit 99ce68978e

View file

@ -807,9 +807,9 @@ class FixedGridLayoutManager : RecyclerView.LayoutManager() {
// Adjust each disappearing view to its proper place
val lp = disappearingChild.layoutParams as LayoutParams
val newRow = getGlobalRowOfPosition(lp.viewAdapterPosition)
val newRow = getGlobalRowOfPosition(lp.absoluteAdapterPosition)
val rowDelta = newRow - lp.row
val newCol = getGlobalColumnOfPosition(lp.viewAdapterPosition)
val newCol = getGlobalColumnOfPosition(lp.absoluteAdapterPosition)
val colDelta = newCol - lp.column
layoutTempChildView(disappearingChild, rowDelta, colDelta, disappearingChild)