mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2025-01-08 01:51:23 +00:00
!2031 schedule next ability in same mission list.
Merge pull request !2031 from ccll/master
This commit is contained in:
commit
66bafee12f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user