mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
Fix android application suspend-resume
This commit is contained in:
@ -14,7 +14,6 @@ global.moduleMerge(frameCommon, exports);
|
|||||||
var TAG = "_fragmentTag";
|
var TAG = "_fragmentTag";
|
||||||
var HIDDEN = "_hidden";
|
var HIDDEN = "_hidden";
|
||||||
var INTENT_EXTRA = "com.tns.activity";
|
var INTENT_EXTRA = "com.tns.activity";
|
||||||
var ROOT_VIEW = "_rootView";
|
|
||||||
var BACKSTACK_TAG = "_backstackTag";
|
var BACKSTACK_TAG = "_backstackTag";
|
||||||
var IS_BACK = "_isBack";
|
var IS_BACK = "_isBack";
|
||||||
var NAV_DEPTH = "_navDepth";
|
var NAV_DEPTH = "_navDepth";
|
||||||
@ -696,7 +695,7 @@ class NativeScriptActivity extends android.app.Activity {
|
|||||||
var isRestart = !!savedInstanceState && activityInitialized;
|
var isRestart = !!savedInstanceState && activityInitialized;
|
||||||
super.onCreate(isRestart ? savedInstanceState : null);
|
super.onCreate(isRestart ? savedInstanceState : null);
|
||||||
|
|
||||||
this[ROOT_VIEW] = rootView;
|
this.rootView = rootView;
|
||||||
|
|
||||||
// Initialize native visual tree;
|
// Initialize native visual tree;
|
||||||
rootView._onAttached(this);
|
rootView._onAttached(this);
|
||||||
|
Reference in New Issue
Block a user