mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +08:00
also use replace when replacing frame page
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user