mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-11-23 07:10:19 +00:00
回退 'Pull Request !10599 : 【挑单5.0.1release】修复意图框架stoull处理问题'
This commit is contained in:
parent
ce8cba4d7c
commit
c829f0a6f3
@ -55,10 +55,6 @@ config("ability_manager_public_config") {
|
||||
}
|
||||
}
|
||||
|
||||
config("ability_manager_exception_config") {
|
||||
cflags_cc = [ "-fexceptions" ]
|
||||
}
|
||||
|
||||
ohos_shared_library("ability_manager") {
|
||||
branch_protector_ret = "pac_ret"
|
||||
|
||||
@ -113,8 +109,6 @@ ohos_shared_library("ability_manager") {
|
||||
]
|
||||
}
|
||||
|
||||
configs = [ ":ability_manager_exception_config" ]
|
||||
|
||||
public_configs = [
|
||||
":ability_manager_public_config",
|
||||
"${ability_runtime_services_path}/abilitymgr:abilityms_config",
|
||||
|
@ -82,20 +82,13 @@ bool InsightIntentExecuteParam::GenerateFromWant(const AAFwk::Want &want,
|
||||
TAG_LOGE(AAFwkTag::INTENT, "empty want");
|
||||
return false;
|
||||
}
|
||||
uint64_t insightIntentId = 0;
|
||||
try {
|
||||
insightIntentId = std::stoull(wantParams.GetStringParam(INSIGHT_INTENT_EXECUTE_PARAM_ID));
|
||||
} catch (...) {
|
||||
TAG_LOGE(AAFwkTag::ABILITY, "invalid insight intent ID");
|
||||
return false;
|
||||
}
|
||||
|
||||
AppExecFwk::ElementName elementName = want.GetElement();
|
||||
executeParam.bundleName_ = elementName.GetBundleName();
|
||||
executeParam.moduleName_ = elementName.GetModuleName();
|
||||
executeParam.abilityName_ = elementName.GetAbilityName();
|
||||
executeParam.insightIntentName_ = wantParams.GetStringParam(INSIGHT_INTENT_EXECUTE_PARAM_NAME);
|
||||
executeParam.insightIntentId_ = insightIntentId;
|
||||
executeParam.insightIntentId_ = std::stoull(wantParams.GetStringParam(INSIGHT_INTENT_EXECUTE_PARAM_ID));
|
||||
executeParam.executeMode_ = wantParams.GetIntParam(INSIGHT_INTENT_EXECUTE_PARAM_MODE, 0);
|
||||
|
||||
auto insightIntentParam = wantParams.GetWantParams(INSIGHT_INTENT_EXECUTE_PARAM_PARAM);
|
||||
|
Loading…
Reference in New Issue
Block a user