From: luozheng <1732036298@qq.com> Date: Tue, 29 Oct 2024 12:30:31 +0000 (+0800) Subject: 1.关机动画开始后关闭翻腕息屏,防止息屏后关机动画不执行 X-Git-Tag: fd230_release_V1.3.102~29^2~101 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=aca1fff86ce4179322bd1252a997e9e6bbeaf292;p=mirrors%2FFD230.git 1.关机动画开始后关闭翻腕息屏,防止息屏后关机动画不执行 2.关机动画启动禁止一切弹窗,通过设置Slice优先级为最高级实现 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/rebootandshutdown/src/ShutDownImageAnimatorView.cpp b/code/sdk/application/wearable/fd230app/nativeui/rebootandshutdown/src/ShutDownImageAnimatorView.cpp index 8116e9a6d..18ff17990 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/rebootandshutdown/src/ShutDownImageAnimatorView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/rebootandshutdown/src/ShutDownImageAnimatorView.cpp @@ -11,6 +11,8 @@ #include "uicomponents/UIComponents.h" #include "vibrator_service.h" #include "bleEvent.h" +#include "AppViewIDs.h" +#include "NativeAbility.h" namespace OHOS { @@ -84,6 +86,10 @@ namespace OHOS shutDownImageAnimatorView->Start(); isShutDownImageAnimatorStart = true; ScreenAlwaysOnCtr(OPEN_SCREEN_ALWAYS_ON); // 关机动画已经开始了不能息屏 + + uapi_take_to_wake(0);//关闭抬腕亮屏,和息屏 + + NativeAbility::GetInstance().SetCurSlicePriority(0); //设置Slice优先级为最高,防止弹窗出现 // 关机增加震动 ui_api_vibrate_once_func();