IssueNo:#I55144:switch to a already existed user, OOBE will be launched

Description:switch to a already existed user, OOBE will be launched
Sig:SIG_ApplicationFramework
Feature or Bugfix:Bugfix
Binary Source:No

Signed-off-by: zhoujun62 <zhoujun62@huawei.com>
Change-Id: I5caca2edfb57b704e8103c90742f5e13682df1e2
This commit is contained in:
zhoujun62
2022-05-04 10:03:25 +08:00
parent 915a6779a6
commit 10cc0bb5e9
2 changed files with 6 additions and 1 deletions
@@ -3544,7 +3544,6 @@ void AbilityManagerService::StartUserApps(int32_t userId, bool isBoot)
if (currentMissionListManager_ && currentMissionListManager_->IsStarted()) {
HILOG_INFO("missionListManager ResumeManager");
currentMissionListManager_->ResumeManager();
return;
}
StartSystemAbilityByUser(userId, isBoot);
}
@@ -1850,6 +1850,12 @@ void MissionListManager::BackToLauncher()
HILOG_WARN("no root launcher ability, no need back to launcher.");
return;
}
if (launcherRootAbility->GetAbilityInfo().bundleName != AbilityConfig::LAUNCHER_BUNDLE_NAME) {
HILOG_WARN("not launcher mission, no need back to launcher.");
return;
}
auto launcherRootMission = launcherRootAbility->GetMission();
if (!launcherRootMission) {
HILOG_WARN("no root launcher mission, no need back to launcher.");