mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 22:21:36 -04:00
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:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user