From 09540aa8777842bf34ba40f9acc6eb10c01b48d8 Mon Sep 17 00:00:00 2001 From: Caisking Date: Thu, 16 Oct 2025 14:27:49 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=98=E5=8C=96=E5=9C=A8=E8=BF=90=E5=8A=A8?= =?utf8?q?=E5=87=86=E5=A4=87=E7=95=8C=E9=9D=A2=E7=9A=84=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeapp/nativeui/traing/include/TraingNomalPresenter.h | 3 ++- .../nativeapp/nativeui/traing/src/TraingNomalPresenter.cpp | 3 ++- .../nativeapp/nativeui/traing/include/TraingNomalPresenter.h | 3 ++- .../nativeapp/nativeui/traing/src/TraingNomalPresenter.cpp | 3 ++- .../nativeapp/nativeui/traing/include/TraingNomalPresenter.h | 3 ++- .../n9/nativeapp/nativeui/traing/src/TraingNomalPresenter.cpp | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/code/sdk/application/wearable/fd230/nativeapp/nativeui/traing/include/TraingNomalPresenter.h b/code/sdk/application/wearable/fd230/nativeapp/nativeui/traing/include/TraingNomalPresenter.h index 7ad590fdf..d8191b437 100644 --- a/code/sdk/application/wearable/fd230/nativeapp/nativeui/traing/include/TraingNomalPresenter.h +++ b/code/sdk/application/wearable/fd230/nativeapp/nativeui/traing/include/TraingNomalPresenter.h @@ -25,7 +25,8 @@ namespace OHOS void OnResume() override; void OnStop() override; void NavigateBack(); - void Notify() override; + void OnTickEvent() override; + void Notify() override {} static TraingNomalPresenter *GetInstance(); diff --git a/code/sdk/application/wearable/fd230/nativeapp/nativeui/traing/src/TraingNomalPresenter.cpp b/code/sdk/application/wearable/fd230/nativeapp/nativeui/traing/src/TraingNomalPresenter.cpp index 318c353b6..f02755c57 100644 --- a/code/sdk/application/wearable/fd230/nativeapp/nativeui/traing/src/TraingNomalPresenter.cpp +++ b/code/sdk/application/wearable/fd230/nativeapp/nativeui/traing/src/TraingNomalPresenter.cpp @@ -156,7 +156,8 @@ namespace OHOS return true; } - void TraingNomalPresenter::Notify() + //修改为秒级定时器更新GPS定位状态 + void TraingNomalPresenter::OnTickEvent() { /*判断是否需要GPS*/ if(TraingModel::GetInstance()->IsNeedGPS(TraingModel::GetInstance()->GetSportEvent()) == false) diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/include/TraingNomalPresenter.h b/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/include/TraingNomalPresenter.h index 7ad590fdf..d8191b437 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/include/TraingNomalPresenter.h +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/include/TraingNomalPresenter.h @@ -25,7 +25,8 @@ namespace OHOS void OnResume() override; void OnStop() override; void NavigateBack(); - void Notify() override; + void OnTickEvent() override; + void Notify() override {} static TraingNomalPresenter *GetInstance(); 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 318c353b6..f02755c57 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 @@ -156,7 +156,8 @@ namespace OHOS return true; } - void TraingNomalPresenter::Notify() + //修改为秒级定时器更新GPS定位状态 + void TraingNomalPresenter::OnTickEvent() { /*判断是否需要GPS*/ if(TraingModel::GetInstance()->IsNeedGPS(TraingModel::GetInstance()->GetSportEvent()) == false) diff --git a/code/sdk/application/wearable/n9/nativeapp/nativeui/traing/include/TraingNomalPresenter.h b/code/sdk/application/wearable/n9/nativeapp/nativeui/traing/include/TraingNomalPresenter.h index 7ad590fdf..d8191b437 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativeui/traing/include/TraingNomalPresenter.h +++ b/code/sdk/application/wearable/n9/nativeapp/nativeui/traing/include/TraingNomalPresenter.h @@ -25,7 +25,8 @@ namespace OHOS void OnResume() override; void OnStop() override; void NavigateBack(); - void Notify() override; + void OnTickEvent() override; + void Notify() override {} static TraingNomalPresenter *GetInstance(); diff --git a/code/sdk/application/wearable/n9/nativeapp/nativeui/traing/src/TraingNomalPresenter.cpp b/code/sdk/application/wearable/n9/nativeapp/nativeui/traing/src/TraingNomalPresenter.cpp index 318c353b6..f02755c57 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativeui/traing/src/TraingNomalPresenter.cpp +++ b/code/sdk/application/wearable/n9/nativeapp/nativeui/traing/src/TraingNomalPresenter.cpp @@ -156,7 +156,8 @@ namespace OHOS return true; } - void TraingNomalPresenter::Notify() + //修改为秒级定时器更新GPS定位状态 + void TraingNomalPresenter::OnTickEvent() { /*判断是否需要GPS*/ if(TraingModel::GetInstance()->IsNeedGPS(TraingModel::GetInstance()->GetSportEvent()) == false) -- 2.17.1