FirebaseUI-Android icon indicating copy to clipboard operation
FirebaseUI-Android copied to clipboard

single event listener support

Open mahmoudelfeel opened this issue 10 years ago • 1 comments

Recycler view adapter changes data every time a child is changed the issue is is i have likes and number of downloads on every post if 10000 users like or download something it will change at all the users but i want the adapter to only listen once i dont see any override to this what is the solution?

mahmoudelfeel avatar Sep 28 '16 19:09 mahmoudelfeel

These adapters are made to synchronize data. There is no way to disable that behavior.

Creating a non-synchronizing adapter is actually a lot simpler. Basically an ValueEventListener that adds the data to array. I recommend you roll your own and post a question on Stack Overflow if you have problems making it work.

On Wed, Sep 28, 2016 at 12:02 PM mahmoudelfeel [email protected] wrote:

Recycler view adapter changes data every time a child is changed the issue is is i have likes and number of downloads on every post if 10000 users like or download something it will change at all the users but i want the adapter to only listen once i dont see any override to this what is the solution?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/firebase/FirebaseUI-Android/issues/332, or mute the thread https://github.com/notifications/unsubscribe-auth/AA3w31QG3C2ejHZIhD5t2-qEdQtIBnWUks5qurlPgaJpZM4KJMC3 .

puf avatar Sep 29 '16 15:09 puf