修复字段传递的bug

Co-Authored-By: Agent

Signed-off-by: hanchen45 <wanghanchen1@huawei.com>

🤖‍ AI[0%] 👌 AI Adopted[0%] 🧑 Human[100%]
This commit is contained in:
hanchen45
2026-06-27 16:51:25 +08:00
parent 197d7605ec
commit 70e4cf4635
4 changed files with 4 additions and 3 deletions
@@ -2095,8 +2095,8 @@ int AbilityManagerStub::CloseUIAbilityBySCBInner(MessageParcel &data, MessagePar
if (data.ReadBool()) {
sessionInfo = data.ReadParcelable<SessionInfo>();
}
uint32_t sceneFlag = data.ReadUint32();
bool isUserRequestedExit = data.ReadBool();
uint32_t sceneFlag = data.ReadUint32();
int32_t result = CloseUIAbilityBySCB(sessionInfo, isUserRequestedExit, sceneFlag);
reply.WriteInt32(result);
return NO_ERROR;
@@ -193,7 +193,7 @@ void DeepLinkReserveConfig::LoadReservedUrilItem(const nlohmann::json &jsonUriOb
}
if (jsonUriObject.contains(PATH_NAME) && jsonUriObject.at(PATH_NAME).is_string()) {
std::string pathName = jsonUriObject.at(PATH_NAME).get<std::string>();
reserveUri.path = PATH_NAME;
reserveUri.path = pathName;
TAG_LOGD(AAFwkTag::ABILITYMGR, "path:%{public}s", reserveUri.path.c_str());
}
if (jsonUriObject.contains(PATH_START_WITH_NAME) && jsonUriObject.at(PATH_START_WITH_NAME).is_string()) {
@@ -4252,7 +4252,7 @@ int UIAbilityLifecycleManager::ChangeAbilityVisibility(sptr<IRemoteObject> token
CHECK_POINTER_AND_RETURN(callerSessionInfo, ERR_INVALID_VALUE);
CHECK_POINTER_AND_RETURN(callerSessionInfo->sessionToken, ERR_INVALID_VALUE);
auto callerSession = iface_cast<Rosen::ISession>(callerSessionInfo->sessionToken);
TAG_LOGI(AAFwkTag::ABILITYMGR, "got callerSession, call ChangeSessionVisibilityWithStatusBar()");
TAG_LOGI(AAFwkTag::ABILITYMGR, "callerSession ChangeSessionVisibilityWithStatusBar, isShow:%{public}d", isShow);
CHECK_POINTER_AND_RETURN(callerSession, ERR_INVALID_VALUE);
return static_cast<int>(callerSession->ChangeSessionVisibilityWithStatusBar(callerSessionInfo, isShow));
}
@@ -213,6 +213,7 @@ std::shared_ptr<StartAbilityInfo> QueryAbilityInfo(const Want &want, int32_t use
{
auto bms = AbilityUtil::GetBundleManagerHelper();
CHECK_POINTER_AND_RETURN(bms, nullptr);
abilityInfoFlag |= static_cast<uint32_t>(AppExecFwk::AbilityInfoFlag::GET_ABILITY_INFO_WITH_FUSION);
auto request = std::make_shared<StartAbilityInfo>();
if (appIndex > 0 && appIndex <= AbilityRuntime::GlobalConstant::MAX_APP_CLONE_INDEX) {
IN_PROCESS_CALL_WITHOUT_RET(bms->QueryCloneAbilityInfo(want.GetElement(), abilityInfoFlag, appIndex,