DMCApps / NavigationFragment

The purpose of this manager is to work with the ViewPager, Tabs and Navigation drawer to handle a single stack flow of fragments on the screen. It makes use of a main Fragment as a container and presents and hides fragments within it as children.
MIT License
28 stars 8 forks source link

StackManager.popFragment() Implementation Causing Back Button Issue #29

Closed jackcsk closed 7 years ago

jackcsk commented 7 years ago

When the navigationFragment.dismissFragment() is called at the root stack, can I prevent it from calling getActivity().onBackPressed()? It is related to cases that we will pop the fragment when the app fails to load data from server, and it is causing issue of exiting the app if the dismissFragment() call is triggered at the root.

jackcsk commented 7 years ago

@DMCApps: never mind, I can check it with getNavigationManager().isOnRootFragment() Thanks. :-)

DMCApps commented 7 years ago

@jackcsk Not a problem! Glad to see you're still enjoying the library!