mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
more event fixes
This commit is contained in:
@ -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 () {
|
||||
|
@ -495,7 +495,7 @@ var NativeActivity = {
|
||||
java.lang.System.gc();
|
||||
this.super.onLowMemory();
|
||||
|
||||
application.notify(<application.ApplicationEventData>{ eventName: application.lowMemoryEvent, object: this });
|
||||
application.notify(<application.ApplicationEventData>{ eventName: application.lowMemoryEvent, object: this, android: this });
|
||||
},
|
||||
|
||||
onTrimMemory: function (level: number) {
|
||||
|
Reference in New Issue
Block a user