I have two main activities and the rest of the pages are full-screen DialogFragments
(instead of another Activity
),
at some point, I'm opening a DialogFragment
from another DialogFragment
. How can the first DialogFragment
know if pressed the back button or when the DialogFragment
above it is dismissed?
I have not added the DialogFragment
s to the backstack because I don't want them to replace some view in the activity.
I tried to override the onResume()
and onHidden()
. I tried to add an event to the FragmentManager
and none yielded any relevant results.
I would be glad if someone could shed some light on how I could do this?
My goal is to refresh the DialogFragment
or Activity
when it shows after the dialog above it is dismissed (new data from server or changes I made in the dialog that affect the previous page).