关闭星历下载打印,解决,星历下载完后星历优化界面按键失效问题
authorluozheng <1732036298@qq.com>
Wed, 4 Feb 2026 08:49:03 +0000 (16:49 +0800)
committerluozheng <1732036298@qq.com>
Wed, 4 Feb 2026 08:49:03 +0000 (16:49 +0800)
code/sdk/application/wearable/fd272/nativeapp/nativeui/ephemeris_download/src/EphemerisDownloadPresenter.cpp
code/sdk/zhihui/utils/custom_utils.c
code/sdk/zhihui/utilscpp/custom_utilscpp.cpp

index 7fa2a9a..fbd91df 100644 (file)
@@ -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:
index eba39bc..66792e5 100644 (file)
@@ -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;
     }
     
index 727a5fe..51e130a 100644 (file)
@@ -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++;
     }