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.
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.