From c1d3dab261b8731e277468f7f767b5fbfc94f5a5 Mon Sep 17 00:00:00 2001 From: HanSY Date: Mon, 1 Sep 2025 20:58:35 +0800 Subject: [PATCH] fixDefault Signed-off-by: HanSY --- frameworks/resmgr/src/res_config_impl.cpp | 2 +- interfaces/inner_api/include/res_common.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/resmgr/src/res_config_impl.cpp b/frameworks/resmgr/src/res_config_impl.cpp index 118d353..fb65a81 100644 --- a/frameworks/resmgr/src/res_config_impl.cpp +++ b/frameworks/resmgr/src/res_config_impl.cpp @@ -435,7 +435,7 @@ std::vector ResConfigImpl::GetAppSupportDeviceTypes() DeviceType ResConfigImpl::ParseDeviceTypeStr(const std::string &deviceType) { - if (deviceType == std::string(PHONE_STR)) { + if (deviceType == std::string(PHONE_STR) || deviceType == std::string(DEFAULT_STR)) { return DeviceType::DEVICE_PHONE; } if (deviceType == std::string(TABLET_STR)) { diff --git a/interfaces/inner_api/include/res_common.h b/interfaces/inner_api/include/res_common.h index 30941c9..f78866c 100644 --- a/interfaces/inner_api/include/res_common.h +++ b/interfaces/inner_api/include/res_common.h @@ -32,6 +32,7 @@ static const char *VERTICAL = "vertical"; static const char *HORIZONTAL = "horizontal"; // DEVICETYPE +static const char *DEFAULT_STR = "default"; static const char *PHONE_STR = "phone"; static const char *TABLET_STR = "tablet"; static const char *CAR_STR = "car"; -- Gitee