Merge pull request #2304 from NativeScript/atanasovg/update-http

Rename com.tns.Async.xxx to org.nativescript.widgets.Async.xxx
This commit is contained in:
Georgi Atanasov
2016-06-21 11:37:32 +03:00
committed by GitHub
4 changed files with 50 additions and 45 deletions

View File

@@ -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, (<any>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);