解决设置中点击关机按钮死机问题
authorluozheng <1732036298@qq.com>
Thu, 29 Aug 2024 06:57:57 +0000 (14:57 +0800)
committerluozheng <1732036298@qq.com>
Thu, 29 Aug 2024 06:57:57 +0000 (14:57 +0800)
code/sdk/application/wearable/fd230app/nativeui/system/src/SystemPresenter.cpp
code/sdk/application/wearable/fd230app/nativeui/system/src/SystemView.cpp

index f148d98..5e5356b 100644 (file)
@@ -209,7 +209,7 @@ namespace OHOS
         }\r
         else if (strcmp(view.GetViewId(), SHUTDOWN_CHECKON) == 0) // 关机确认\r
         {\r
-            p_SystemView->ChangeView(RESTARTVIEW, SHUTDOWNANIMATIONVIEW);\r
+            p_SystemView->ChangeView(SHUTDOWNVIEW, SHUTDOWNANIMATIONVIEW);\r
             start_shutdown_or_reboot();\r
             shutdown_reboot_prejobs();\r
 \r
index 75a0326..182c659 100644 (file)
@@ -399,7 +399,7 @@ namespace OHOS
     {\r
         if (SystemScrollView[thisView] == nullptr)\r
         {\r
-            WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemView::ChangeToSystemFactoryResetView");\r
+            WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemView::ChangeToSystemRestartView");\r
             p_SystemRestart = new SystemRestart();\r
             if (p_SystemRestart == nullptr)\r
             {\r
@@ -417,7 +417,7 @@ namespace OHOS
     {\r
         if (SystemScrollView[thisView] == nullptr)\r
         {\r
-            WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemView::ChangeToSystemFactoryResetView");\r
+            WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemView::ChangeToSystemShutdownView");\r
             p_SystemShutdown = new SystemShutdown();\r
             if (p_SystemShutdown == nullptr)\r
             {\r
@@ -435,7 +435,7 @@ namespace OHOS
     {\r
         if (SystemScrollView[thisView] == nullptr)\r
         {\r
-            WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemView::ChangeToSystemFactoryResetView");\r
+            WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemView::ChangeToSystemShutdownAnimatorView");\r
             p_ShutDownImageAnimatorView = new ShutDownImageAnimatorView();\r
             if (p_ShutDownImageAnimatorView == nullptr)\r
             {\r