From d217f03fe9f725e5e399cc86686dc6432aff97d6 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Mon, 24 Jun 2024 11:31:28 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8Dapplist=E7=AC=AC=E4=B8=80?= =?utf8?q?=E6=AC=A1=E8=8E=B7=E5=8F=96=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/themestyle/src/ThemeStyleModel.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- 2.17.1