FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat: support intent replacement in the android activity (#5337) · NativeScript/NativeScript@01fab68 · GitHub

Commit 01fab68

Browse files
authored andcommitted
feat: support intent replacement in the android activity (#5337)
1 parent e69af8d commit 01fab68

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎tns-core-modules/ui/frame/activity.android.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ class NativeScriptActivity extends android.app.Activity {
2828
this._callbacks.onCreate(this, savedInstanceState, super.onCreate);
2929
}
3030

31+
protected onNewIntent(intent: android.content.Intent): void {
32+
super.onNewIntent(intent);
33+
super.setIntent(intent);
34+
}
35+
3136
protected onSaveInstanceState(outState: android.os.Bundle): void {
3237
this._callbacks.onSaveInstanceState(this, outState, super.onSaveInstanceState);
3338
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL