From a1aa598602015b1fe2a2041fdb005c109a62e25a Mon Sep 17 00:00:00 2001 From: shuaiyutao Date: Sat, 26 Feb 2022 20:56:51 +0800 Subject: [PATCH] test pixelmap --- services/abilitymgr/test/mock/libs/appexecfwk_core/BUILD.gn | 2 ++ services/formmgr/src/form_mgr_adapter.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/services/abilitymgr/test/mock/libs/appexecfwk_core/BUILD.gn b/services/abilitymgr/test/mock/libs/appexecfwk_core/BUILD.gn index 085aec15768..5675d6f92cd 100644 --- a/services/abilitymgr/test/mock/libs/appexecfwk_core/BUILD.gn +++ b/services/abilitymgr/test/mock/libs/appexecfwk_core/BUILD.gn @@ -31,6 +31,7 @@ config("appexecfwk_core_mock_config") { "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base/include", "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core/include", "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core/include/bundlemgr/", + "//foundation/multimedia/image_standard/interfaces/innerkits/include", ] } @@ -49,6 +50,7 @@ ohos_source_set("appexecfwk_appmgr_mock") { "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler", "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk", "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", + "//foundation/multimedia/image_standard/interfaces/innerkits:image_native", "//utils/native/base:utils", ] diff --git a/services/formmgr/src/form_mgr_adapter.cpp b/services/formmgr/src/form_mgr_adapter.cpp index 7deb1499341..b2adb6774d4 100644 --- a/services/formmgr/src/form_mgr_adapter.cpp +++ b/services/formmgr/src/form_mgr_adapter.cpp @@ -1185,8 +1185,8 @@ ErrCode FormMgrAdapter::CreateFormItemInfo(const BundleInfo &bundleInfo, return ERR_APPEXECFWK_FORM_GET_INFO_FAILED; } itemInfo.SetHostBundleName(hostBundleName); - std::string icon = iBundleMgr->GetAbilityIcon(bundleInfo.name, formInfo.abilityName); - itemInfo.SetIcon(icon); + //std::string icon = iBundleMgr->GetAbilityIcon(bundleInfo.name, formInfo.abilityName); + //itemInfo.SetIcon(icon); itemInfo.SetAbilityName(formInfo.abilityName); itemInfo.SetModuleName(formInfo.moduleName); // formInfo.moduleName: bundleMagr do not set -- Gitee