feat: support intent replacement in the android activity (#5337)

This commit is contained in:
Dimitar Tachev
2018-01-29 16:54:07 +02:00
committed by Alexander Vakrilov
parent e69af8dda9
commit 01fab68e58

View File

@ -28,6 +28,11 @@ class NativeScriptActivity extends android.app.Activity {
this._callbacks.onCreate(this, savedInstanceState, super.onCreate); this._callbacks.onCreate(this, savedInstanceState, super.onCreate);
} }
protected onNewIntent(intent: android.content.Intent): void {
super.onNewIntent(intent);
super.setIntent(intent);
}
protected onSaveInstanceState(outState: android.os.Bundle): void { protected onSaveInstanceState(outState: android.os.Bundle): void {
this._callbacks.onSaveInstanceState(this, outState, super.onSaveInstanceState); this._callbacks.onSaveInstanceState(this, outState, super.onSaveInstanceState);
} }