DialLabel关闭不必要的打印 增加新数据类型 667/3 667/head
authorCaisking <3449750381@qq.com>
Fri, 9 Aug 2024 10:09:39 +0000 (18:09 +0800)
committerCaisking <3449750381@qq.com>
Fri, 9 Aug 2024 10:09:39 +0000 (18:09 +0800)
code/sdk/application/wearable/fd230app/nativeui/main/src/dial/DialLabelView.cpp

index dc84cb2..d690403 100644 (file)
@@ -90,12 +90,7 @@ namespace OHOS
         // printf("HandleTextData called with num: %d, data[0]: %s\n", num, data[0].c_str());
 
         char tempBuf[MAX_BUF_SIZE] = {0};
-#if 0
-        for (uint16_t i = 0; i < num; ++i)
-        {
-            printf("data[%d]: %s\n", i, data[i].c_str());
-        }
-#endif
+
         int ret;
         switch (num)
         {
@@ -109,6 +104,10 @@ namespace OHOS
             ret = snprintf_s(tempBuf, MAX_BUF_SIZE, MAX_BUF_SIZE - 1, text_,
                              data[0].c_str(), "年", data[1].c_str(), "月", data[2].c_str(), "日");
             break;
+        case 4: /*8月7号  星期三*/
+            ret = snprintf_s(tempBuf, MAX_BUF_SIZE, MAX_BUF_SIZE - 1, text_,
+                             data[0].c_str(), data[1].c_str(), data[2].c_str());
+            break;
         default:
             GRAPHIC_LOGE("Invalid num: %d. Max size is 3.\n", num);
             return;