mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-11-23 23:30:44 +00:00
!1330 schedule ability to foreground and request focus when ability is foreground
Merge pull request !1330 from ccll/master
This commit is contained in:
commit
efb0982147
@ -264,15 +264,6 @@ int MissionListManager::StartAbilityLocked(const std::shared_ptr<AbilityRecord>
|
||||
// 4. move target list to top
|
||||
MoveMissionListToTop(targetList);
|
||||
|
||||
// ability is already foreground, process next ability, excepting for launcher's MainAbility.
|
||||
if ((abilityRequest.abilityInfo.bundleName != AbilityConfig::LAUNCHER_BUNDLE_NAME ||
|
||||
abilityRequest.abilityInfo.name != AbilityConfig::LAUNCHER_ABILITY_NAME) &&
|
||||
(targetAbilityRecord->IsAbilityState(AbilityState::FOREGROUND_NEW) ||
|
||||
targetAbilityRecord->IsAbilityState(AbilityState::FOREGROUNDING_NEW))) {
|
||||
PostStartWaittingAbility();
|
||||
return 0;
|
||||
}
|
||||
|
||||
// 5. schedule target ability
|
||||
if (!currentTopAbility) {
|
||||
// top ability is null, then launch the first Ability.
|
||||
|
Loading…
Reference in New Issue
Block a user