mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
more event fixes
This commit is contained in:
@ -236,7 +236,7 @@ global.__onUncaughtError = function (error: Error) {
|
|||||||
|
|
||||||
exports.onUncaughtError(nsError);
|
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 () {
|
exports.start = function () {
|
||||||
|
@ -495,7 +495,7 @@ var NativeActivity = {
|
|||||||
java.lang.System.gc();
|
java.lang.System.gc();
|
||||||
this.super.onLowMemory();
|
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) {
|
onTrimMemory: function (level: number) {
|
||||||
|
Reference in New Issue
Block a user