删除小睡功能
authorCaisking <Casiking@zhihuishixun.com>
Thu, 15 Jan 2026 11:53:53 +0000 (19:53 +0800)
committerCaisking <Casiking@zhihuishixun.com>
Thu, 15 Jan 2026 11:53:53 +0000 (19:53 +0800)
code/sdk/application/wearable/fd272/nativeapp/nativeui/sleep/include/SleepControlView.h

index 47d2efe..30b3622 100644 (file)
@@ -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);