0

I have a working RecyclerView...In onResume I startListening()...
The Problem is, that the FirebaseRecyclerView is mess when I resume the Activity for lower than one second. So I start the App and see the unsorted RecyclerView and after lower than a Second it gets sorted correctly.
Anyone know why this happens and how to fix it?

Here is a short video how it looks like:
https://www.dropbox.com/s/1c12tnbuuup2vrj/fp_4K.mp4?dl=0

Thanks in advance.

marcelo.wdrb
  • 2,041
  • 2
  • 10
  • 16
  • I guess, we cant see your code unless you put them here. – Bishoy Kamel Feb 11 '18 at 09:01
  • 1
    The "mess" likely happens because the data hasn't come back from the Firebase servers yet. The solution is to either ensure that your layouts looks fine even when the data is still missing, or to hide the layouts while the data is loading and only show them once the data is available. – Frank van Puffelen Feb 11 '18 at 15:34
  • @FrankvanPuffelen Can you please look at the Video I linked in my Question. Maybe it's another problem. (I am using the FirebaseOfflineTool) – marcelo.wdrb Feb 12 '18 at 10:32

0 Answers0