From: Caisking Date: Fri, 26 Dec 2025 13:45:26 +0000 (+0800) Subject: 修改充电动画帧数 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=a3094cfd4e5c9c8834ad9893ec151f2fc33f65ac;p=mirrors%2FFD230.git 修改充电动画帧数 --- diff --git a/code/sdk/application/wearable/fd272/service/msg_center/src/notify/charge_notification.cpp b/code/sdk/application/wearable/fd272/service/msg_center/src/notify/charge_notification.cpp index 39581c92b..f79291eeb 100644 --- a/code/sdk/application/wearable/fd272/service/msg_center/src/notify/charge_notification.cpp +++ b/code/sdk/application/wearable/fd272/service/msg_center/src/notify/charge_notification.cpp @@ -30,7 +30,7 @@ namespace OHOS UIViewGroup *group=nullptr; UIImageAnimatorView *ShutDownImageAnimatorView=nullptr; static constexpr char *ShutDownPaths = "/user/res/RebootAndShutDown/ShutDown/"; //关机图片路径 - #define SHUTDOWN_IMAGE_ANIMATOR_VIEW_NUM_FRAMES 45 // 图片帧数 + #define SHUTDOWN_IMAGE_ANIMATOR_VIEW_NUM_FRAMES 30 // 图片帧数 static int16_t SHUTDOWN_IMAGE_ANIMATOR_TIME = 130; // 图片更新间隔 static constexpr int16_t SHUTDOWN_IMAGE_ANIMATOR_VIEW_X = 0; @@ -46,7 +46,7 @@ namespace OHOS //增加充电动画 UIImageAnimatorView *chargeAnimatorView = nullptr; static constexpr char *ChargeAnimationPaths = "/user/res/charge/"; //充电动画路径 - static constexpr int16_t CHARGE_ANIMATION_VIEW_NUM_FRAMES = 45; //充电动画帧数 + static constexpr int16_t CHARGE_ANIMATION_VIEW_NUM_FRAMES = 30; //充电动画帧数 static constexpr int16_t CHARGE_ANIMATION_VIEW_TIME = 150; //充电动画更新间隔 static constexpr int16_t CHARGE_ANIMATION_VIEW_X = 42; //充电动画位置x static constexpr int16_t CHARGE_ANIMATION_VIEW_Y = 50; //充电动画位置y