From c9ea1bb5fe4f5b6ec9f6115b22491c9bab581ab0 Mon Sep 17 00:00:00 2001 From: Caisking Date: Sat, 13 Sep 2025 19:17:58 +0800 Subject: [PATCH] =?utf8?q?=E5=A2=9E=E5=8A=A0GPS=E6=98=9F=E5=8E=86=E6=9C=89?= =?utf8?q?=E6=95=88=E6=9C=9F=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../src/EphemerisDownloadPresenter.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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 -- 2.17.1