You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use a fragments with .skipBackStack(false) and .clearBackStack(false) the previous fragment will not replaced and stay active back to the current fragment.
This fragment need to be hidden otherwise with Toolbar and menu we have many problems.
If you create a simple activity with a toolbar and call supportInvalidateOptionsMenu each you create a new fragment to update the toolbar menu, the event onCreateOptionsMenu will be called for each stacked fragment.
Sorry for my english.
The text was updated successfully, but these errors were encountered:
Yes this is true, but if you display a fragment with animation and use replaceCurrentFragment(true) the previous fragment become hidden even before the animation is over.
When you use a fragments with
.skipBackStack(false)
and.clearBackStack(false)
the previous fragment will not replaced and stay active back to the current fragment.This fragment need to be hidden otherwise with Toolbar and menu we have many problems.
If you create a simple activity with a toolbar and call
supportInvalidateOptionsMenu
each you create a new fragment to update the toolbar menu, the eventonCreateOptionsMenu
will be called for each stacked fragment.Sorry for my english.
The text was updated successfully, but these errors were encountered: