From c420b3159428153584ad1a517613b2b5a4eb1053 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Sat, 22 Jun 2024 17:29:02 +0800 Subject: [PATCH] =?utf8?q?=E6=98=BE=E7=A4=BA=E6=96=B9=E5=BC=8F=E8=A1=A5?= =?utf8?q?=E4=BA=A4=EF=BC=8C=E4=BF=AE=E6=94=B9=E6=AD=BB=E6=9C=BA=E9=97=AE?= =?utf8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/themestyle/src/ThemeStyleModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.17.1