I am simply closing fragment
and going back to previous one by
getFragmentManager().popBackStack();
And it works, fragment
is closed. But when I put the same code in the activity method and call it, then nothing happens.
((FragmentRouter)getActivity()).goBack();
And the implementation
@Override
public void goBack() {
getFragmentManager().popBackStack();
}
How can it be? The code is the same and we are in the same line of event processing.