mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix an issue with the removed Property in the Android Runtime.
This commit is contained in:
@@ -175,7 +175,7 @@ class AndroidApplication implements dts.AndroidApplication {
|
||||
//}
|
||||
|
||||
public getActivity(intent: android.content.Intent): Object {
|
||||
if (intent && intent.Action === android.content.Intent.ACTION_MAIN) {
|
||||
if (intent && intent.getAction() === android.content.Intent.ACTION_MAIN) {
|
||||
// application's main activity
|
||||
if (exports.onLaunch) {
|
||||
exports.onLaunch(intent);
|
||||
@@ -226,4 +226,4 @@ global.__onUncaughtError = function (error: Error) {
|
||||
|
||||
exports.start = function () {
|
||||
dts.loadCss();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user