From 0931cf968b445b5df09346144f5842b27c2d8b44 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Wed, 4 Feb 2026 16:49:03 +0800 Subject: [PATCH] =?utf8?q?=E5=85=B3=E9=97=AD=E6=98=9F=E5=8E=86=E4=B8=8B?= =?utf8?q?=E8=BD=BD=E6=89=93=E5=8D=B0=EF=BC=8C=E8=A7=A3=E5=86=B3=EF=BC=8C?= =?utf8?q?=E6=98=9F=E5=8E=86=E4=B8=8B=E8=BD=BD=E5=AE=8C=E5=90=8E=E6=98=9F?= =?utf8?q?=E5=8E=86=E4=BC=98=E5=8C=96=E7=95=8C=E9=9D=A2=E6=8C=89=E9=94=AE?= =?utf8?q?=E5=A4=B1=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../ephemeris_download/src/EphemerisDownloadPresenter.cpp | 2 ++ code/sdk/zhihui/utils/custom_utils.c | 8 ++++---- code/sdk/zhihui/utilscpp/custom_utilscpp.cpp | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/ephemeris_download/src/EphemerisDownloadPresenter.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/ephemeris_download/src/EphemerisDownloadPresenter.cpp index 7fa2a9ab1..fbd91dfc3 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/ephemeris_download/src/EphemerisDownloadPresenter.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/ephemeris_download/src/EphemerisDownloadPresenter.cpp @@ -103,6 +103,8 @@ bool EphemerisDownloadPresenter::OnKeyAct(UIView &view, const KeyEvent &event) { void EphemerisDownloadPresenter::UpdateDownloadStatus() { + + RootView::GetInstance()->SetOnKeyActListener(this); //根据下载状态更新视图 switch (EphemerisDownloadModel::GetInstance().GetEphemerisDownloadStatus()) { case EphemerisDownloadStatus::DOWNLOADING: diff --git a/code/sdk/zhihui/utils/custom_utils.c b/code/sdk/zhihui/utils/custom_utils.c index eba39bc77..66792e5f8 100644 --- a/code/sdk/zhihui/utils/custom_utils.c +++ b/code/sdk/zhihui/utils/custom_utils.c @@ -1559,12 +1559,12 @@ bool uapi_create_dir(const char *path) return false; } - PRINT("[DirCreate] Checking directory: %s\n", path); + // PRINT("[DirCreate] Checking directory: %s\n", path); struct stat info; // 检查目录是否存在 if (stat(path, &info) != 0) { - PRINT("[DirCreate] Directory does not exist, creating...\n"); + // PRINT("[DirCreate] Directory does not exist, creating...\n"); // 目录不存在,尝试创建 if (mkdir(path, 0755) != 0) { @@ -1573,13 +1573,13 @@ bool uapi_create_dir(const char *path) return false; } - PRINT("[DirCreate] SUCCESS: Directory created: %s\n", path); + // PRINT("[DirCreate] SUCCESS: Directory created: %s\n", path); return true; } // 检查是否为目录 if (info.st_mode & S_IFDIR) { - PRINT("[DirCreate] Directory already exists: %s\n", path); + // PRINT("[DirCreate] Directory already exists: %s\n", path); return true; } diff --git a/code/sdk/zhihui/utilscpp/custom_utilscpp.cpp b/code/sdk/zhihui/utilscpp/custom_utilscpp.cpp index 727a5fec4..51e130ac3 100644 --- a/code/sdk/zhihui/utilscpp/custom_utilscpp.cpp +++ b/code/sdk/zhihui/utilscpp/custom_utilscpp.cpp @@ -496,8 +496,8 @@ errcode_t uapi_epo_lzma_decompress(const char* lzma_file_path) break; } - printf("[uapi_epo_lzma_decompress] Extracted: %s (%u bytes) [batch: %s]\n", - output_path, file_size, current_batch_ts); + // printf("[uapi_epo_lzma_decompress] Extracted: %s (%u bytes) [batch: %s]\n", + // output_path, file_size, current_batch_ts); extracted_count++; } -- 2.17.1