ncapdevi / FragNav

An Android library for managing multiple stacks of fragments
1.5k stars 220 forks source link

problem to pop first fragment #34

Closed Franklin62120 closed 7 years ago

Franklin62120 commented 7 years ago

Hi,

I'm using your library and I'm trying to implement it with my app. But I've a problem with the onBackPressed() implementation. I've for example 1 rootfragment and 1 normal fragment. When I click on a button on the rootfragment for example, I use pushfrangment() to add the normal fragment. But when I click on back, I can't come back to the rootfragment ? It seems you use this : public boolean canPop() { return this.getCurrentStack().size() > 1; } Why 1 ? is it of purpose ? Sorry if my english is not very good ^^ Thanks in advance.

Franklin62120 commented 7 years ago

I used version 1.2.2, seems problem solve in version 1.2.4. Sorry.