From: Caisking Date: Sat, 13 Sep 2025 11:17:58 +0000 (+0800) Subject: 增加GPS星历有效期更新 X-Git-Tag: leiniao_debug_1.0.0_20250922_020716~88^2 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=c9ea1bb5fe4f5b6ec9f6115b22491c9bab581ab0;p=mirrors%2FFD230.git 增加GPS星历有效期更新 --- diff --git a/code/sdk/application/wearable/fd230/nativeapp/nativeui/ephemeris_download/src/EphemerisDownloadPresenter.cpp b/code/sdk/application/wearable/fd230/nativeapp/nativeui/ephemeris_download/src/EphemerisDownloadPresenter.cpp index a315fb715..d3caf087d 100644 --- a/code/sdk/application/wearable/fd230/nativeapp/nativeui/ephemeris_download/src/EphemerisDownloadPresenter.cpp +++ b/code/sdk/application/wearable/fd230/nativeapp/nativeui/ephemeris_download/src/EphemerisDownloadPresenter.cpp @@ -97,7 +97,6 @@ void EphemerisDownloadPresenter::Notify() { if (EphemerisDownloadView::GetInstance()->GetDownloadLabel()) { EphemerisDownloadView::GetInstance()->GetDownloadLabel()->SetText( "下载成功"); - //更新有效期 } } break; @@ -107,10 +106,6 @@ void EphemerisDownloadPresenter::Notify() { EphemerisDownloadView::GetInstance()->GetDownloadLabel()->SetText( "下载失败"); } - if (EphemerisDownloadView::GetInstance()->GetValidityPeriodLabel()) { - EphemerisDownloadView::GetInstance()->GetValidityPeriodLabel()->SetText( - "无星历数据"); - } } break; case EphemerisDownloadStatus::NOT_DOWNLOADED: @@ -119,13 +114,14 @@ void EphemerisDownloadPresenter::Notify() { EphemerisDownloadView::GetInstance()->GetDownloadLabel()->SetText( "未下载"); } - if (EphemerisDownloadView::GetInstance()->GetValidityPeriodLabel()) { - EphemerisDownloadView::GetInstance()->GetValidityPeriodLabel()->SetText( - "无星历数据"); - } } break; } + //更新有效期 + if(EphemerisDownloadView::GetInstance()->GetValidityPeriodLabel()) { + EphemerisDownloadView::GetInstance()->GetValidityPeriodLabel()->SetText( + EphemerisDownloadModel::GetInstance().GetEphemerisValidityPeriod().c_str()); + } } } // namespace OHOS