How to update a field with the query text in the DataSource?

Trying to implement the following task. There are two fragments: the first fragment displays the number of query results (recyclerView), the second consists of fields for a query and click "Search". How do I update the value of the query in the DataSource when the user clicks search? I mean, I need to make a new request to the server and update the data in the recyclerView. Request to the server implemented in the DataSource. There lies the field that represents the current request. And it should be updated with the value from EditText, but I don't know how to implement it. Here is the code:
I would be very grateful for any help.
March 20th 20 at 11:33
0 answer

Find more questions by tags Android