!11526 解决创建用户时更新context错误的问题

Merge pull request !11526 from hanchenZz/tokenid_bug
This commit is contained in:
openharmony_ci 2024-11-08 06:43:37 +00:00 committed by Gitee
commit f2022a0013
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -327,7 +327,7 @@ int32_t AppRunningManager::ProcessUpdateApplicationInfoInstalled(const Applicati
}
auto appInfoList = appRecord->GetAppInfoList();
for (auto iter : appInfoList) {
if (iter->bundleName == appInfo.bundleName) {
if (iter->uid == appInfo.uid) {
appRecord->UpdateApplicationInfoInstalled(appInfo);
break;
}