From c4d3c50dd95e1cf3c9e9e4aa94d5cdaf08907f9d Mon Sep 17 00:00:00 2001 From: xue <2144439972@qq.com> Date: Wed, 1 Apr 2026 17:52:32 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E9=94=99?= =?utf8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd272/nativeapp/nativeui/traing/src/TraingModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/src/TraingModel.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/src/TraingModel.cpp index 4687c2647..af2f92b75 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/src/TraingModel.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/src/TraingModel.cpp @@ -3322,7 +3322,7 @@ void TraingModel::SetGpsOpen(bool open) { static void gnss_timer_callback(int data) { WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "gnss_timer_callback %d", data); #if defined(SUPPORT_GNSS) - if (OHOS::AbilityNavigation::GetCurSliceId() == VIEW_SPORT_COUNTDOWN) { + if (NativeAbility::GetInstance().GetCurSliceId() == VIEW_SPORT_COUNTDOWN) { return; // 当前在运动倒计时 slice,只正常定时,不操作 } #endif -- 2.17.1