Hi, guys!! I have got a trouble with our lovely sy...
# android
d
Hi, guys!! I have got a trouble with our lovely system )) Imagine we have 3 fragments A -> B -> C. I need to go from C -> A using
fragmentManager.popBackStack()
. I did not put the B fragment to back stack, so I used
fragmentTransaction.replace(...).commit()
. BUT! when use
fragmentManager.popBackStack()
on fragment C I go to the fragment A, but fragment C is overdrawn over (or behind I do not understand) fragment A. Do we have a nice solution to manage this situation? I know, that we can use
popBackStack()
for specific transaction, but I do need to put fragment B to backstack
m
I think, we could use Fragment B as a full screen dialg frgment. If we replaced the fragment B, might be overlapping issue come. I am not sure it is right solution or not.
e
Make sure you are using getSupportFragmentManager and AndroidX fragments as well
d
@ezorrio That is exactly what I use 🙂