From 847ddc695b6bf210baaa84aa25e76ddc891532e1 Mon Sep 17 00:00:00 2001 From: Caisking Date: Sat, 7 Jun 2025 18:57:20 +0800 Subject: [PATCH] =?utf8?q?N9=E9=BB=98=E8=AE=A4=E8=A1=A8=E7=9B=98=E5=A2=9E?= =?utf8?q?=E5=8A=A0=E7=94=B5=E6=B1=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/fd230app/nativeui/clock/src/MainClockView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/sdk/application/wearable/fd230app/nativeui/clock/src/MainClockView.cpp b/code/sdk/application/wearable/fd230app/nativeui/clock/src/MainClockView.cpp index 785a3ba72..f8bec7554 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/clock/src/MainClockView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/clock/src/MainClockView.cpp @@ -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(); -- 2.17.1