From 70e69850de1d0fc31b3884284fb399534c7b3444 Mon Sep 17 00:00:00 2001 From: xue <2144439972@qq.com> Date: Thu, 5 Mar 2026 09:48:26 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/traing/src/TraingNomalPresenter.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) 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 { -- 2.17.1