From: luozheng <1732036298@qq.com> Date: Fri, 30 Aug 2024 01:59:00 +0000 (+0800) Subject: 秒表界面计数条数去掉数字0 X-Git-Tag: release_V1.2.70_20241020_135402~529^2~54 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=1b914f1f7ca97d1e24831f3d0865b6d2025ee606;p=mirrors%2FFD230.git 秒表界面计数条数去掉数字0 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/stopwatch/src/MainStopWatchPresenter.cpp b/code/sdk/application/wearable/fd230app/nativeui/stopwatch/src/MainStopWatchPresenter.cpp index 8e02dad6d..540ec3514 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/stopwatch/src/MainStopWatchPresenter.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/stopwatch/src/MainStopWatchPresenter.cpp @@ -203,11 +203,11 @@ namespace OHOS char *PickerData = (char *)malloc(128); if (lastRecordTime == 0) // 如果是第一次标记 { - sprintf(PickerData, "0%d %s +%s", RecordCycleNumber, formattedTime, formattedTime); + sprintf(PickerData, "%d %s +%s", RecordCycleNumber, formattedTime, formattedTime); } else { - sprintf(PickerData, "0%d %s +%s", RecordCycleNumber, formattedTime, formattedDiff); + sprintf(PickerData, "%d %s +%s", RecordCycleNumber, formattedTime, formattedDiff); } m_listdata->PushFront(const_cast(PickerData)); m_listadapter->SetData(m_listdata);