From feba9e19c66166e2f0482e2feaaa2ae6d48ad7d4 Mon Sep 17 00:00:00 2001 From: xue <2144439972@qq.com> Date: Sat, 6 Dec 2025 17:29:01 +0800 Subject: [PATCH] =?utf8?q?=E5=85=B3=E9=97=AD=E4=B8=8B=E8=BD=BD=E7=95=8C?= =?utf8?q?=E9=9D=A2=E7=9A=84=E5=AE=9A=E6=97=B6=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp | 6 ++++++ .../wearable/ln/nativeapp/nativeui/ota/src/OtaView.cpp | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp index b5ad9b1c6..a58d35539 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp @@ -319,6 +319,11 @@ namespace OHOS void OtaModel::StartStatusBarTimer() { + // 暂时关闭刷新时间和信号的定时器 + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "StartStatusBarTimer: Timer is temporarily disabled"); + return; + + /* if (m_statusBarTimer != nullptr) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "StatusBar timer already exists"); return; @@ -342,6 +347,7 @@ namespace OHOS m_statusBarTimerActive = true; WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Status bar timer started successfully"); + */ } void OtaModel::StopStatusBarTimer() diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaView.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaView.cpp index e50f91e4e..ec1433536 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaView.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaView.cpp @@ -121,7 +121,8 @@ namespace OHOS ScrollView_->Add(CreateIndependentStatusBar()); // 创建独立的状态栏 // 启动状态栏更新定时器 - OtaModel::GetInstance()->StartStatusBarTimer(); + // 暂时关闭刷新时间和信号的定时器 + // OtaModel::GetInstance()->StartStatusBarTimer(); } void OtaView::OnStop() @@ -726,7 +727,7 @@ namespace OHOS // 更新电池信息 UpdateBatteryDisplay(); - + // 更新信号信息 UpdateSignalDisplay(); } -- 2.17.1