OnResume () snippet and backStack problem

I was fixated on the situation for resuming my fragment when I return from another fragment.

Scenario:

I have one Fragment A. Now I open a few fragments, in Fragment Asaying: A1, A2, A3 ...using the frame layout.

Now I initiate a new fragment, say Fragment Bfrom one of A1 / A2 / A3 ...

I am doing some kind of action on Fragment B, and now when I exit mine Fragment B, then I cannot get onResume () fromFragment A

Just need to get onResume () while I get back from Fragment B

Any help needs this!

Highly appreciated!

Thank.

+4
source share
2 answers

A1, A2, A3 childfragment A B .

: . , getChildFragmentManager() getSupportFragmentManager().

, A1, A2 A3, getChildFragmentManager(), B getSupportFragmentManager(). , B, onResume callback A.

+1

B, : addToBackstack (null); , B A.

0

Source: https://habr.com/ru/post/1599274/


All Articles