Description: fix bug when app exit abnormally

IssueNo: https://gitee.com/openharmony/ace_engine_lite/issues/I54NXS
Feature or Bugfix: Bugfix
Binary Source:No
Signed-off-by: lancer <haoshuo@huawei.com>
This commit is contained in:
lancer
2022-04-25 22:11:20 +08:00
parent 62fda2ab3e
commit ef4048900f
@@ -131,6 +131,7 @@ void JSAbility::Show()
HILOG_INFO(HILOG_MODULE_ACE, "LIFECYCLE: JS Ability will be shown");
ACE_EVENT_PRINT(MT_ACE_FWK_ACTIVING, 0);
FatalHandler::GetInstance().SetExitingFlag(false);
JSAbilityImpl *jsAbilityImpl = CastAbilityImpl(jsAbilityImpl_);
jsAbilityImpl->Show();
AsyncTaskManager::GetInstance().SetFront(true);