mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-11-23 07:10:19 +00:00
!11689 解决保活应用重启时隐藏启动还是走onForeground生命周期问题
Merge pull request !11689 from 杨旭光/bugfix/keep-alive-on-foreground
This commit is contained in:
commit
255051b194
@ -366,7 +366,8 @@ void UIAbilityImpl::UpdateSilentForeground(const AAFwk::LifeCycleStateInfo &targ
|
||||
}
|
||||
if (lifecycleState_ == AAFwk::ABILITY_STATE_INITIAL &&
|
||||
sessionInfo && sessionInfo->processOptions &&
|
||||
AAFwk::ProcessOptions::IsValidProcessMode(sessionInfo->processOptions->processMode) &&
|
||||
(sessionInfo->processOptions->isRestartKeepAlive
|
||||
|| AAFwk::ProcessOptions::IsValidProcessMode(sessionInfo->processOptions->processMode)) &&
|
||||
sessionInfo->processOptions->startupVisibility == AAFwk::StartupVisibility::STARTUP_HIDE) {
|
||||
TAG_LOGI(AAFwkTag::UIABILITY, "set IsSilentForeground to true");
|
||||
ability_->SetIsSilentForeground(true);
|
||||
|
Loading…
Reference in New Issue
Block a user