From: xue <2144439972@qq.com> Date: Thu, 5 Mar 2026 01:48:26 +0000 (+0800) Subject: 修复编译bug X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F3247%2Ftarget%2F1;p=mirrors%2FFD230.git 修复编译bug --- diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/src/TraingNomalPresenter.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/src/TraingNomalPresenter.cpp index 53f425710..03332f8ef 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/src/TraingNomalPresenter.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/src/TraingNomalPresenter.cpp @@ -4,7 +4,7 @@ #include "components/ui_label_ext.h" #include "ui_resource_string.h" #include "NativeAbility.h" -#include "sport_countdown/CountdownPresenter.h" +// #include "sport_countdown/CountdownPresenter.h" #include "key/include/KeyInputListener.h" #include "custom_utils.h" #include "common/key_code.h" @@ -196,17 +196,12 @@ namespace OHOS // 根据目标视图决定后续操作 if (targetViewId == VIEW_TRAININGCRAD) { - #if 0 - // 进入倒计时前暂停 GPS 定时器,避免与 UI 同线程导致卡顿;进运动卡片后 OnStart 会恢复 - CountdownPresenter::SetReturnSlice(VIEW_TRAININGCRAD); - NativeAbility::GetInstance().EnterSlice(VIEW_SPORT_COUNTDOWN); + // 进入运动卡片:设置标志位并启动运动资源,先进入 3 秒运动倒计时 + // CountdownPresenter::SetReturnSlice(VIEW_TRAININGCRAD); + // NativeAbility::GetInstance().EnterSlice(VIEW_SPORT_COUNTDOWN); enter_flag = true; StartSportResources(); - return true; - #else - enter_flag = true; - StartSportResources(); - #endif + // return true; } else {