ncapdevi / FragNav

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

wrong current fragment #146

Closed mortezaezzabady closed 6 years ago

mortezaezzabady commented 6 years ago

hi:) navController.getCurrentFrag().getClass() returns previous tab fragment but navController.getCurrentStack().peek().getClass() is correct!

askarsyzdykov commented 6 years ago

What version do you use? In 2.3.0 version this bug was fixed

Modified how public Fragment getCurrentFrag() works. There were previously situations where a fragment had been transacted, and thus was on the stack, but the function was still returning the previous function. This should no longer be the case.

mortezaezzabady commented 6 years ago

i'm using v2.1.0, i'll update it, thank you:D