mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-02-07 14:58:24 +00:00
Fixed recyclerview header not colliding in some special case
This commit is contained in:
parent
9fc6a1eb57
commit
98a3c89435
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ class RecyclerViewHeaderDecoration(
|
|||
var latestPositionHeaderFound = -1
|
||||
var nextHeaderTopPosition = -1f
|
||||
|
||||
for (index in parent.childCount downTo 0) {
|
||||
for (index in parent.childCount downTo 1) { // Ignore top/first item
|
||||
val child = parent.getChildAt(index)
|
||||
val position = parent.getChildAdapterPosition(child)
|
||||
if (position != RecyclerView.NO_POSITION && adapter.displayHeaderForPosition(position)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue