Skip to content

FirestoreRecyclerAdapter jumps position when updating the first document #1830

Open
@BirdmanTunes

Description

@BirdmanTunes
  • Android device: Google Pixel 2 XL
  • Android OS version: 10
  • Google Play Services version: 18.1.0
  • Firebase/Play Services SDK version: 21.5.0
  • FirebaseUI version: 6.3.0

Steps to reproduce:

  • make a recyclerview connected to firestore that displays a list of shopping items showing item names only
  • the shopping items change to crossed out when clicked on
  • the shopping items are ordered by uncrossed first
  • if your list contains about 20 elements go to the top and cross out the first item

Observed Results:

  • the recyclerview will scroll down to the crossed out item
  • does not happen when crossing any of the items except the first one

Expected Results:

  • the crossed out item should just fly down and the list should not move

Relevant Code:

ShoppingAdapter.kt
https://hastebin.com/okezanasak.m

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions