密码锁:优化关闭密码的UI切换
authorCaisking <3449750381@qq.com>
Wed, 16 Oct 2024 06:51:44 +0000 (14:51 +0800)
committerCaisking <3449750381@qq.com>
Wed, 16 Oct 2024 06:51:44 +0000 (14:51 +0800)
code/sdk/application/wearable/fd230app/nativeui/codedlock/src/CodedLockModel.cpp

index dca516b..c10f09d 100644 (file)
@@ -6,7 +6,7 @@
 #include "wearable_log.h"
 #include "string.h"
 #include "ConfigModel.h"
-
+#include "custom_utils.h"
 extern "C" void uapi_dev_runtime_set_lock_status(uint8_t status);
 namespace OHOS
 {
@@ -218,8 +218,8 @@ namespace OHOS
         auto codedLockViewInstance = CodedLockView::GetInstance();
 
         // 如果是在主界面或密码锁界面,重新进入主界面
-        if (mainViewInstance != nullptr || codedLockViewInstance != nullptr)
-        {
+        if (mainViewInstance != nullptr || codedLockViewInstance != nullptr) {
+            uapi_set_screen_on_api(); // 亮屏
             NativeAbility::GetInstance().ChangeSlice(VIEW_MAIN);
         }
     }