Fix an issue with the removed Property in the Android Runtime.

This commit is contained in:
Georgi Atanasov
2015-04-01 19:38:56 +03:00
parent 8262e47833
commit 9b70127f4e

View File

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