I have a recyclerViewAdapter class where I want some logic to be performed when the onResume method is called inside my Fragment holding the adapter. This means that once a user presses the back button to return to the fragment, an operation would take place inside the adapter.
Is there a way to this?