From: Caisking Date: Thu, 15 Jan 2026 11:53:53 +0000 (+0800) Subject: 删除小睡功能 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=092115cd4ac5e2737d7a9a6d07fcd0984a4542b8;p=mirrors%2FFD230.git 删除小睡功能 --- 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);