From: Caisking Date: Thu, 16 Oct 2025 06:27:49 +0000 (+0800) Subject: 优化在运动准备界面的刷新 X-Git-Tag: V1.0.9_20251128_194606_LN~212^2~5 X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=09540aa8777842bf34ba40f9acc6eb10c01b48d8;p=mirrors%2FFD230.git 优化在运动准备界面的刷新 --- 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)