android - Update Activity on closing Fragment -
i have activity a. once has been loaded, on clicking button in adds fragment f on a's home layout. once inside f, if callinggetactivity().getsupportfragmentmanager().popbackstack();
, infacts navigates again activity a. there way can make changes in activity once fragment has been popbackstacked? don't know method called in activity once fragment has been popbackstacked , have activity. please help.
you can add onbackstackchangedlistener(). this:
getsupportfragmentmanager().addonbackstackchangedlistener(new onbackstackchangedlistener() { public void onbackstackchanged() { } });
this callback called after each change on stack.
Comments
Post a Comment