use replace when navigating with clearHistory

This commit is contained in:
Martin Guillon
2020-08-24 11:07:29 +02:00
parent b127f12bbb
commit c1e710a614

View File

@ -439,7 +439,11 @@ export class Frame extends FrameBase {
//transaction.setTransition(androidx.fragment.app.FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
}
if (clearHistory) {
transaction.replace(this.containerViewId, newFragment, newFragmentTag);
} else {
transaction.add(this.containerViewId, newFragment, newFragmentTag);
}
transaction.commitAllowingStateLoss();
}