ncapdevi/FragNav

Different toolbar for each Fragment

hosseinaminii opened this issue · 2 comments

How to add different toolbar for each Fragment? setSupportActionBar does not work correctly

By changing FragNavController.DETACH_ON_NAVIGATE_HIDE_ON_SWITCH to FragNavController.DETACH the issue fixed, but I want to know, doesn't it cause any performance issue?

Nope, it shouldn't cause any performance issues. But also setSupportActionBar should be working correctly. I'm not sure which lifecycle event you are using to set the support action bar, but the library has a normal fragment lifecycle, so it should definitely be doable.