diff --git a/frameworks/resmgr/src/res_config_impl.cpp b/frameworks/resmgr/src/res_config_impl.cpp index 118d35374ccbb01613a3b00d06daca86653194cc..fb65a818dc9ee0fe4df436e6b8853468acdd04d6 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 30941c9e16bcab260cf8e292328b93d5e3c2d08d..f78866c1f4b970cc3fd1e1d5623b762ba0f3d7fb 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";