I have a viewpager that contains 3 fragments, one for transacted transactions, one for canceled transactions and one for open transactions. Each fragment has a recyclerview for displaying the transactions and also, each fragment has a swiperefreshlayout so that the user you can get the latest information from the server. My question is this: How do I update the list of fragment 1 and also the list of fragment 2 and 3 if necessary?
Ex: When updating the open transaction fragment, and verifying that the arrayList has elements less, logically the transaction that was open was for the canceled transaction fragment or made. Assuming there was such a change in the arrayList, I would like to also update fragment 2 and 3 if necessary.
PS: both are in the same viewpager, already tried via interface and could not.