firebase / friendlyeats-web

Apache License 2.0
493 stars 412 forks source link

FirestoreAdapter onDocumentModified doesn't update data on position change #125

Closed s-hliao closed 4 years ago

s-hliao commented 4 years ago

Steps to Reproduce:

Problem: Though the document is moved to the correct position, the data that was changed will not be updated in the recyclerView.

Current Solution: Added the line notifyItemChanged(change.getNewIndex()); at the end of the case in onDocumentModified to update data on modified document.

samtstern commented 4 years ago

@s-hliao this seems to be mentioning Android concepts but you filed this on the repo for the web codelab. Please re-file this on the correct repository.