修改充电动画帧数
authorCaisking <Casiking@zhihuishixun.com>
Fri, 26 Dec 2025 13:45:26 +0000 (21:45 +0800)
committerCaisking <Casiking@zhihuishixun.com>
Fri, 26 Dec 2025 13:45:26 +0000 (21:45 +0800)
code/sdk/application/wearable/fd272/service/msg_center/src/notify/charge_notification.cpp

index 39581c9..f79291e 100644 (file)
@@ -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