mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 12:43:16 -04:00
!1667 switch to a already existed user, OOBE will be launched
Merge pull request !1667 from zhoujun62/fix_bug
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