I have RecyclerView adapter which loads items when the fragment is initialized. Also I have DialogFragment to add new item. So, How do I know, if the new item is added in the DialogFragment and update the adapter?
I tried to use RecyclerView.AdapterDataObserver, but then I realized that DialogFragment does not know anything about Adapter in the fragment.