!2031 schedule next ability in same mission list.

Merge pull request !2031 from ccll/master
This commit is contained in:
openharmony_ci 2022-06-09 08:30:35 +00:00 committed by Gitee
commit 66bafee12f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1138,11 +1138,10 @@ void MissionListManager::RemoveTerminatingAbility(const std::shared_ptr<AbilityR
// 4. the ability should find the next ability to foreground
std::shared_ptr<AbilityRecord> needTopAbility;
if (missionList->IsEmpty()) {
HILOG_DEBUG("MissionList is empty, next is launcher.");
needTopAbility = GetCurrentTopAbilityLocked();
} else {
if (!missionList->IsEmpty()) {
needTopAbility = missionList->GetTopAbility();
} else {
HILOG_DEBUG("mission list is empty, no next ability.");
}
if (!needTopAbility) {