Open Princejack66 opened 3 years ago
@Princejack66 can you describe more specifically what's not working when you call updateOptions
? Does the data change at all? Do you see any messages in the logs?
Not a single change all data disappeared and I haven't noticed anything in logcat like error or warning
I mean I want to filter my data when my fragment starts this query executes
query = FirebaseDatabase.getInstance().getReference().child("King");
All I want to do when the user clicks on the menu item data must be filter. And I want to change the query to this
Query newQuery = FirebaseDatabase.getInstance().getReference().child("King").orderByChild("Category").equalTo("Gaming");
after clicking on the menu item
but the above-given code isn't working and not showing a single data after selecting the menu item.
Step 3: Describe the problem:
I want to update the query at run time using the same adapter. I have a number of filters that I want to apply at run time to filter out the data from the real-time database. I have even tried the update option but that didn't work well and nothing happened.
Even the logcat don't show any error or bugs,
here is my code to update the query. Query to update
Adapter Code