修改进入接口
authorCaisking <3449750381@qq.com>
Tue, 19 Mar 2024 12:37:30 +0000 (20:37 +0800)
committerCaisking <3449750381@qq.com>
Tue, 19 Mar 2024 12:37:30 +0000 (20:37 +0800)
code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingPresenter.cpp
code/sdk/application/wearable/fd230app/nativeui/traingrecord/src/TraingRecordPresenter.cpp

index 7a4bbc2..8cdefa2 100644 (file)
@@ -5,7 +5,7 @@
 #include <chrono>
 #include <thread>
 #include "traing/include/TraingPresenter.h"
-//#include "TraingView.h"
+// #include "TraingView.h"
 
 namespace OHOS
 {
@@ -73,11 +73,9 @@ namespace OHOS
         {
             NativeAbility::GetInstance().ChangeSlice(VIEW_APPLIST);
         }
-        if (strcmp(view.GetViewId(), "Remind") == 0)
+        if (strcmp(view.GetViewId(), BUTTONMORE) == 0)
         {
-            // 模拟心率监测,等待20秒
-            //std::this_thread::sleep_for(std::chrono::seconds(20));
-            //NativeAbility::GetInstance().ChangeSlice(VIEW_TraingREMIND);
+            NativeAbility::GetInstance().ChangeSlice(VIEW_TRAININGMORE);
         }
         return true;
     }