From b5fdbb8e653c780e5f9902d147d1f1d6b3b9550c Mon Sep 17 00:00:00 2001 From: caochunlei Date: Tue, 22 Mar 2022 19:55:44 +0800 Subject: [PATCH] caochunlei1@huawei.com Signed-off-by: caochunlei --- services/abilitymgr/src/mission_list_manager.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/services/abilitymgr/src/mission_list_manager.cpp b/services/abilitymgr/src/mission_list_manager.cpp index 23a0a9c412..755f3c5730 100644 --- a/services/abilitymgr/src/mission_list_manager.cpp +++ b/services/abilitymgr/src/mission_list_manager.cpp @@ -264,15 +264,6 @@ int MissionListManager::StartAbilityLocked(const std::shared_ptr // 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.