also use replace when replacing frame page

This commit is contained in:
Martin Guillon
2020-08-24 11:14:50 +02:00
parent 392e2c8d59
commit 9a5d99e241

View File

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