From 602eaf5e7ec3b70005a43365a68a46974199cc85 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Sun, 3 Mar 2024 11:29:24 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=98=E5=8C=96=E8=A1=80=E6=B0=A7=E5=8A=9F?= =?utf8?q?=E8=83=BD=E7=9A=84=E6=BB=91=E5=8A=A8=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/bloodoxygen/src/BloodOxygenView.cpp | 3 ++- .../fd230app/nativeui/bloodoxygen/src/BloodResultView.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/src/BloodOxygenView.cpp b/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/src/BloodOxygenView.cpp index 1e4705367..b07675576 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/src/BloodOxygenView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/src/BloodOxygenView.cpp @@ -75,7 +75,7 @@ namespace OHOS void BloodOxygenView::Upspo2data() { uint16_t spo2_ = BloodOxygenModel::GetInstance()->GetSPO2data(); - //WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "GetSPO2Data %d", spo2_); + // WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "GetSPO2Data %d", spo2_); std::string bloodoxygenStr = std::to_string(spo2_); percent->SetText(bloodoxygenStr.c_str()); } @@ -204,6 +204,7 @@ namespace OHOS BloodScrollView[BLOODVIEW]->SetOnDragListener(draglistener); BloodScrollView[BLOODVIEW]->SetTouchable(true); BloodScrollView[BLOODVIEW]->SetDraggable(true); + BloodScrollView[BLOODVIEW]->SetVerticalScrollState(false); // 禁止纵向滑动 /* -------------------------------------------------------------------------- */ if (InitImageDisplay() == false) { diff --git a/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/src/BloodResultView.cpp b/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/src/BloodResultView.cpp index 2d107a620..da68c4676 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/src/BloodResultView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/src/BloodResultView.cpp @@ -37,7 +37,7 @@ namespace OHOS BloodResultView::BloodResultView() { WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BloodBandoffView::BloodBandoffView"); - + g_pMainView = this; } @@ -181,6 +181,7 @@ namespace OHOS BloodResultScrollView->SetOnDragListener(draglistener); BloodResultScrollView->SetTouchable(true); BloodResultScrollView->SetDraggable(true); + BloodResultScrollView->SetHorizontalScrollState(false); // 禁止横向滑动 /* -------------------------------------------------------------------------- */ if (InitImageDisplay() == false) { -- 2.17.1