From 5c130e45ce9dd3070758170e2dcebf39d88990e6 Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Mon, 1 Jun 2015 17:23:46 +0300 Subject: [PATCH] more event fixes --- application/application.android.ts | 2 +- ui/frame/frame.android.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/application.android.ts b/application/application.android.ts index 32edeede7..9de127b80 100644 --- a/application/application.android.ts +++ b/application/application.android.ts @@ -236,7 +236,7 @@ global.__onUncaughtError = function (error: Error) { exports.onUncaughtError(nsError); - exports.notify({ eventName: dts.uncaughtErrorEvent, object: appModule.android, android: error }); + exports.notify({ eventName: dts.uncaughtErrorEvent, object: appModule.android, android: nsError }); } exports.start = function () { diff --git a/ui/frame/frame.android.ts b/ui/frame/frame.android.ts index c7cfb1653..fdf205011 100644 --- a/ui/frame/frame.android.ts +++ b/ui/frame/frame.android.ts @@ -495,7 +495,7 @@ var NativeActivity = { java.lang.System.gc(); this.super.onLowMemory(); - application.notify({ eventName: application.lowMemoryEvent, object: this }); + application.notify({ eventName: application.lowMemoryEvent, object: this, android: this }); }, onTrimMemory: function (level: number) {