This commit is contained in:
atanasovg
2016-02-24 17:24:31 +02:00
parent 52c8e53b2f
commit cbbde1b171

View File

@ -238,6 +238,7 @@ export class Frame extends frameCommon.Frame {
}
let manager = activity.getFragmentManager();
let isFirstNavigation = types.isNullOrUndefined(this._currentEntry);
// Clear history
if (backstackEntry.entry.clearHistory) {
@ -307,7 +308,6 @@ export class Frame extends frameCommon.Frame {
// remember the fragment tag at page level so that we can retrieve the fragment associated with a Page instance
backstackEntry.resolvedPage[TAG] = newFragmentTag;
let isFirstNavigation = types.isNullOrUndefined(this._currentEntry);
if (isFirstNavigation) {
fragmentTransaction.add(this.containerViewId, newFragment, newFragmentTag);
trace.write(`fragmentTransaction.add(${newFragmentTag});`, trace.categories.NativeLifecycle);