crash fix HL | navigateInternal (#5175)

This commit is contained in:
Shaurya Rehan
2023-02-03 15:18:02 +05:30
committed by Shivam Goyal
parent ea07d98f70
commit ebeb2236e1

View File

@@ -85,9 +85,11 @@ abstract class HomeLoanBaseActivity : BaseActivity(), Navigator {
if (destination != null) {
val fragment = getFragment(destination, arguments)
if (fragment != null) {
supportFragmentManager.beginTransaction().run {
replace(containerId, fragment, destination)
commit()
if (!supportFragmentManager.isStateSaved) {
supportFragmentManager.beginTransaction().run {
replace(containerId, fragment, destination)
commit()
}
}
}
}