Merge pull request #1678 from NativeScript/hhristov/fix-android-suspend-resume-app

Fix android application suspend-resume
This commit is contained in:
Hristo Hristov
2016-03-01 17:22:03 +02:00

View File

@@ -14,7 +14,6 @@ global.moduleMerge(frameCommon, exports);
var TAG = "_fragmentTag";
var HIDDEN = "_hidden";
var INTENT_EXTRA = "com.tns.activity";
var ROOT_VIEW = "_rootView";
var BACKSTACK_TAG = "_backstackTag";
var IS_BACK = "_isBack";
var NAV_DEPTH = "_navDepth";
@@ -735,7 +734,7 @@ class NativeScriptActivity extends android.app.Activity {
var isRestart = !!savedInstanceState && activityInitialized;
super.onCreate(isRestart ? savedInstanceState : null);
this[ROOT_VIEW] = rootView;
this.rootView = rootView;
// Initialize native visual tree;
rootView._onAttached(this);