ncapdevi / FragNav

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

Fragments fail to attach after replacrFragment #194

Open nikhil-thakkar opened 5 years ago

nikhil-thakkar commented 5 years ago

This is a strange issue I'm facing. Steps to reproduce:

  1. Clearstack for current tab and replace the root fragment using replaceFragment method.
  2. Though the above step works but when you switch tabs, the already attached fragment disappears and fails to attach itself.

Please look into this issue and let me know if this sounds valid.

nikhil-thakkar commented 5 years ago

To add to, my fragmentHideStrategy was DETACH_ON_NAVIGATE_HIDE_ON_SWITCH but when I change it to DETACH, the fragments are attach/detach correctly.

ncapdevi commented 5 years ago

Hmm, just to clarify, are the clearstack and replaceFragment methods called sequentially and immediately after each other? Also could you verify which version of FragNav you're using.

nikhil-thakkar commented 5 years ago

Yes, the clearstack and replaceFragment are being called sequentially and immediately. The version of FragNav we are using is 3.1.0.

Onum commented 5 years ago

Same issue. When can we expect a fix?

AEslamifar commented 4 years ago

Same issue.

bvk070 commented 4 years ago

Same issue. It's been more than a year. When can we expect a fix?