From 092115cd4ac5e2737d7a9a6d07fcd0984a4542b8 Mon Sep 17 00:00:00 2001 From: Caisking Date: Thu, 15 Jan 2026 19:53:53 +0800 Subject: [PATCH] =?utf8?q?=E5=88=A0=E9=99=A4=E5=B0=8F=E7=9D=A1=E5=8A=9F?= =?utf8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd272/nativeapp/nativeui/sleep/include/SleepControlView.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/sleep/include/SleepControlView.h b/code/sdk/application/wearable/fd272/nativeapp/nativeui/sleep/include/SleepControlView.h index 47d2efe61..30b362299 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/sleep/include/SleepControlView.h +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/sleep/include/SleepControlView.h @@ -28,7 +28,7 @@ namespace OHOS { MAINSLEEPVIEW = 0, // 主视图 SLEEPTIMEVIEW, // 详细视图 - SLEEPNAPVIEW, //小睡 + SLEEPNAPVIEW, //小睡 (已禁用,不添加) MAX_SLEEPVIEW, } SleepControlPageId; @@ -65,7 +65,7 @@ namespace OHOS SleepNapView *sleepnapView{nullptr}; private: - int16_t maxPage = MAX_SLEEPVIEW; + int16_t maxPage = MAX_SLEEPVIEW - 1; // 不添加小睡卡片,只显示主视图和详细视图 UISwipeView *SleepSwipeViewList{nullptr}; AppGroupView *recordCard[MAX_SLEEPVIEW]{nullptr}; AppGroupView *CreatePage(uint8_t SleepControlPageId); -- 2.17.1