FragNav icon indicating copy to clipboard operation
FragNav copied to clipboard

Fragments fail to attach after replacrFragment

Open nikhil-thakkar opened this issue 6 years ago • 6 comments

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 avatar Jan 19 '19 12:01 nikhil-thakkar

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.

nikhil-thakkar avatar Jan 24 '19 16:01 nikhil-thakkar

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.

ncapdevi avatar Mar 04 '19 19:03 ncapdevi

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

nikhil-thakkar avatar Mar 05 '19 05:03 nikhil-thakkar

Same issue. When can we expect a fix?

Onum avatar Jul 23 '19 20:07 Onum

Same issue.

AEslamifar avatar Sep 27 '20 22:09 AEslamifar

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

bvk070 avatar Oct 15 '20 09:10 bvk070