【血氧】UI
authorCaisking <Casiking@zhihuishixun.com>
Fri, 18 Apr 2025 03:54:18 +0000 (11:54 +0800)
committerCaisking <Casiking@zhihuishixun.com>
Fri, 18 Apr 2025 03:54:18 +0000 (11:54 +0800)
code/sdk/application/wearable/fd230/nativeapp/nativeui/bloodoxygen/src/BloodDetectionView.cpp
code/sdk/application/wearable/fd230/nativeapp/nativeui/bloodoxygen/src/BloodOxygenModel.cpp
code/sdk/application/wearable/fd230/nativeapp/nativeui/bloodoxygen/src/BloodResultPresenter.cpp
code/sdk/application/wearable/fd230/nativeapp/nativeui/bloodoxygen/src/BloodResultView.cpp

index f9a031c..a3a0386 100644 (file)
@@ -145,8 +145,6 @@ namespace OHOS
     }
     void BloodDetectionView::OnStart()
     {
-        // SetContainerView(new UIViewGroup());
-        // container_->SetPosition(0, 0, Screen::GetInstance().GetWidth(), Screen::GetInstance().GetHeight());
 
         if (!BloodDetectionViewInit())
         {
index 406b849..6442fe8 100644 (file)
@@ -3,13 +3,19 @@
 
 // #include "DialModelSPO2.h"
 #include "wearable_log.h"
-// #include "heart_blood/health_service/health_service.h"
+
+#include "heart_blood/health_service/health_service.h"
+
 #include "custom_utils.h"
 
 extern "C" errcode_t uapi_get_timestamp_ms(uint32_t *tm);
 
 #include "custom_utils.h"
-// #include "ppg_service.h"
+
+#ifdef PPG_HX3695
+#include "ppg_service.h"
+#endif
+
 #include "ConfigModel.h"
 #include "AppViewIDs.h"
 #include "NativeAbility.h"
index 4970572..1ad4b49 100644 (file)
 #include <thread>
 #include <sys/time.h>
 
-// #include "ppg_service.h"
+#ifdef PPG_HX3695
+#include "ppg_service.h"
+#endif
+
 // #include "displaybrightness/include/DisplayBrightnessModel.h"
 #include "power_display_service.h"
 #include "custom_utils.h"
-// #include "cywee_service.h"
+
+#ifdef ENABLE_CYWEE
+#include "cywee_service.h"
+#endif
+
 // #include "battery_hal.h"
 
-// #include "heart_blood/health_service/health_service.h"
+#include "heart_blood/health_service/health_service.h"
+
 #include "gfx_utils/mem_check.h"
 #include "NativeRegisterManager.h"
 
index 78e1334..19e2735 100644 (file)
@@ -207,8 +207,8 @@ namespace OHOS
         GetRootContainer()->SetOnDragListener(presenter_);
 
         // 增加按键监听
-        RootView::OnKeyActListener *keyactListener = (RootView::OnKeyActListener *)OHOS::BloodResultPresenter::GetInstance();
-        RootView::GetInstance()->SetOnKeyActListener(keyactListener);
+        // RootView::OnKeyActListener *keyactListener = (RootView::OnKeyActListener *)OHOS::BloodResultPresenter::GetInstance();
+        // RootView::GetInstance()->SetOnKeyActListener(keyactListener);
     }
 
 }