From dedce943f264099b4e5f4e241ad94874011280ea Mon Sep 17 00:00:00 2001 From: atanasovg Date: Wed, 15 Jun 2016 14:43:38 +0300 Subject: [PATCH] Fix the startActivity method. --- tns-core-modules/ui/frame/frame.android.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tns-core-modules/ui/frame/frame.android.ts b/tns-core-modules/ui/frame/frame.android.ts index 40b8ebd3e..2c4a7aa44 100644 --- a/tns-core-modules/ui/frame/frame.android.ts +++ b/tns-core-modules/ui/frame/frame.android.ts @@ -589,7 +589,8 @@ function findPageForFragment(fragment: android.app.Fragment, frame: Frame) { } function startActivity(activity: android.app.Activity, frameId: number) { - var intent = new android.content.Intent(activity, (com).tns.NativeScriptActivity.class); + // TODO: Implicitly, we will open the same activity type as the current one + var intent = new android.content.Intent(activity, activity.getClass()); intent.setAction(android.content.Intent.ACTION_DEFAULT); intent.putExtra(INTENT_EXTRA, frameId);