mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
Remove Action property from Intent class.
Location tests are not executed on emulator. Label test made for iOS only. Change frame.android.action property to method. Image measured widht/height are now floor (like in android runtime).
This commit is contained in:
@ -624,7 +624,7 @@ class AndroidFrame extends observable.Observable implements definition.AndroidFr
|
||||
}
|
||||
|
||||
// can go back only if it is not the main one.
|
||||
return this._activity.getIntent().Action !== android.content.Intent.ACTION_MAIN;
|
||||
return this._activity.getIntent().getAction() !== android.content.Intent.ACTION_MAIN;
|
||||
}
|
||||
|
||||
public reset() {
|
||||
@ -682,7 +682,7 @@ function findPageForFragment(fragment: android.app.Fragment, frame: Frame) {
|
||||
|
||||
function startActivity(activity: android.app.Activity, entry: definition.NavigationEntry) {
|
||||
var intent = new android.content.Intent(activity, (<any>com).tns.NativeScriptActivity.class);
|
||||
intent.Action = android.content.Intent.ACTION_DEFAULT;
|
||||
intent.setAction(android.content.Intent.ACTION_DEFAULT);
|
||||
// TODO: Put the navigation context (if any) in the intent
|
||||
activity.startActivity(intent);
|
||||
}
|
Reference in New Issue
Block a user