优化开机动画 313/1 313/head
authorpenglei <1624952103@qq.com>
Tue, 18 Jun 2024 12:19:09 +0000 (20:19 +0800)
committerpenglei <1624952103@qq.com>
Tue, 18 Jun 2024 12:19:09 +0000 (20:19 +0800)
code/sdk/middleware/services/gui/uikit/proprietary/src/service/src/graphic_service_wrapper.cpp

index 109f744..116cd64 100755 (executable)
@@ -369,7 +369,8 @@ static void boot_animation_task(void *arg)
         WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP," boot_group nullptr fail");
         return;
     }
-
+    HideGraphicLogo();
+    HideGraphicOtaLogo();
     OHOS::GraphicEventHandler::GetInstance()->PostGraphicEvent(
         [] {
             OHOS::RootView::GetInstance()->Add(boot_group);
@@ -407,7 +408,7 @@ void ShowGraphicLogo(void)
             OHOS::RootView::GetInstance()->Invalidate();
         },
         false);
-    //LOS_Msleep(1000);
+    LOS_Msleep(500);
 }
 
 void ShowGraphicOTALogo(void)
@@ -429,13 +430,11 @@ void ShowGraphicOTALogo(void)
             OHOS::RootView::GetInstance()->Invalidate();
         },
         false);
-    //LOS_Msleep(1000);
+    LOS_Msleep(500);
 }
 
 void boot_animation_init(void)
 {
-    //ShowGraphicLogo();
-
     taskcfg.task_handle = g_boot_animation_task_handle;
     taskcfg.attr.name="boot_animation_service";
     taskcfg.attr.priority = TASK_PRIORITY_APP;