How do you update the Firebase Recyclerview adapter with a query. Hardcoded works but not otherwise...

958 views
Skip to first unread message

Rasmus Josefsson

unread,
May 29, 2016, 11:01:54 AM5/29/16
to Firebase Google Group

Following code works to query the list from the database when hardcoded when the activity starts. But adding it to a spinner doesn't work. 

queryRefSelected = mUserRef.orderByChild("travelType").equalTo("work");


   mFirebaseRecyclerViewAdapter.notifyDataSetChanged();

Only gives me blank refresh of all items in my list, and not the query I want.


http://stackoverflow.com/questions/37470224/how-to-correctly-notify-firebases-adapter-its-dataset-has-changed

Rasmus Josefsson

unread,
May 29, 2016, 6:08:10 PM5/29/16
to Firebase Google Group
Reply all
Reply to author
Forward
0 new messages