Signed-off-by: caochunlei <caochunlei1@huawei.com>
This commit is contained in:
caochunlei 2022-03-28 19:24:26 +08:00
parent f8437c64dd
commit 61ed207eec

View File

@ -96,9 +96,15 @@ bool NewAbilityImpl::AbilityTransaction(const Want &want, const AAFwk::LifeCycle
NewWant(want);
}
#ifdef SUPPORT_GRAPHICS
Foreground(want);
if (lifecycleState_ == AAFwk::ABILITY_STATE_FOREGROUND_NEW) {
if (ability_) {
ability_->RequsetFocus(want);
}
} else {
Foreground(want);
ret = false;
}
#endif
ret = false;
break;
}
case AAFwk::ABILITY_STATE_BACKGROUND_NEW: {