From: xue <2144439972@qq.com> Date: Wed, 1 Apr 2026 09:52:32 +0000 (+0800) Subject: 修复编译错误 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=c4d3c50dd95e1cf3c9e9e4aa94d5cdaf08907f9d;p=mirrors%2FFD230.git 修复编译错误 --- 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