mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-11-27 17:31:37 +00:00
Signed-off-by: caochunlei <caochunlei1@huawei.com>
This commit is contained in:
parent
f8437c64dd
commit
61ed207eec
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user