N9默认表盘增加电池 1815/1 1815/head
authorCaisking <Casiking@zhihuishixun.com>
Sat, 7 Jun 2025 10:57:20 +0000 (18:57 +0800)
committerCaisking <Casiking@zhihuishixun.com>
Sat, 7 Jun 2025 10:57:20 +0000 (18:57 +0800)
code/sdk/application/wearable/fd230app/nativeui/clock/src/MainClockView.cpp

index 785a3ba..f8bec75 100644 (file)
@@ -346,12 +346,14 @@ namespace OHOS
     */
     bool MainClockView::InitBatteryView(BatteryDisplayType type)
     {
+        #if !defined(BOARD_W9)  // N9需要显示电池
         // 不显示电池 icon
         if (type == BATTERY_DISPLAY_NONE)
         {
             WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "no show battery");
             return false;
         }
+        #endif
 
         // 创建电池框图像
         batteryiamge = new UIImageView();