Skip to content

Commit 331b878

Browse files
author
Alexander Vakrilov
authored
fix: App crashes on restart in android (NativeScript#1261)
1 parent f3e455e commit 331b878

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Diff for: nativescript-angular/platform-common.ts

-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import {
3131
run as applicationRun,
3232
_resetRootView as applicationRerun,
3333
on,
34-
off,
3534
launchEvent,
3635
LaunchEventData,
3736
} from "tns-core-modules/application";
@@ -164,7 +163,6 @@ export class NativeScriptPlatformRef extends PlatformRef {
164163
"nativescript-angular/platform-common.launchCallback",
165164
(args: LaunchEventData) => {
166165
bootstrapLog("Application launch event fired");
167-
off(launchEvent, launchCallback);
168166

169167
let bootstrapPromiseCompleted = false;
170168
this._bootstrapper().then(

0 commit comments

Comments
 (0)