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) {