From: Caisking <3449750381@qq.com> Date: Mon, 24 Jun 2024 03:31:28 +0000 (+0800) Subject: 修复applist第一次获取样式 X-Git-Tag: release_V1.2.70_20241020_135402~950^2~20 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=d217f03fe9f725e5e399cc86686dc6432aff97d6;p=mirrors%2FFD230.git 修复applist第一次获取样式 --- 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 22223b8d5..f4febd17a 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/themestyle/src/ThemeStyleModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/themestyle/src/ThemeStyleModel.cpp @@ -1,3 +1,9 @@ +/*** + * @Date: 2024-06-22 18:08:25 + * @LastEditors: Caisking 3449750381@qq.com + * @LastEditTime: 2024-06-24 11:30:12 + * @FilePath: /XTS_FD230/FD230/code/sdk/application/wearable/fd230app/nativeui/themestyle/src/ThemeStyleModel.cpp + */ /* * @Author: luozheng 1732036298@qq.com * @Date: 2024-06-07 09:21:47 @@ -34,6 +40,7 @@ namespace OHOS int ret = UtilsGetValue(THEMESTYLE_KEY, temp, STYLE_VALUE_LEN); // 从文件系统或缓存中获取与指定键匹配的值。 if (ret < 0) { + UtilsSetValue(THEMESTYLE_KEY, THEMESTYLE_VALUE_LIST); // 设置默认值 WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "UtilsGetValue error,temp:%s,ret = %d", temp, ret); return ThemeStyle::APPLIST_STYLE; }