From: luozheng <1732036298@qq.com> Date: Sat, 22 Jun 2024 09:29:02 +0000 (+0800) Subject: 显示方式补交,修改死机问题 X-Git-Tag: release_V1.2.70_20241020_135402~963 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F363%2F2;p=mirrors%2FFD230.git 显示方式补交,修改死机问题 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/themestyle/src/ThemeStyleModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/themestyle/src/ThemeStyleModel.cpp index 67cba074b..22223b8d5 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/themestyle/src/ThemeStyleModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/themestyle/src/ThemeStyleModel.cpp @@ -32,7 +32,7 @@ namespace OHOS char temp[STYLE_VALUE_LEN] = {0}; int ret = UtilsGetValue(THEMESTYLE_KEY, temp, STYLE_VALUE_LEN); // 从文件系统或缓存中获取与指定键匹配的值。 - if (ret != EC_SUCCESS) + if (ret < 0) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "UtilsGetValue error,temp:%s,ret = %d", temp, ret); return ThemeStyle::APPLIST_STYLE;