From b38ee3decd2d2118fcc65398da61858ef04edf51 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Thu, 14 Mar 2024 14:08:50 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=98=E5=8C=96=E5=BD=95=E9=9F=B3=E8=A7=86?= =?utf8?q?=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/record/src/RecordingPresenter.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingPresenter.cpp b/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingPresenter.cpp index 92f0f2c06..bbaad50a0 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingPresenter.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingPresenter.cpp @@ -109,7 +109,11 @@ namespace OHOS } else if (event.GetDragDirection() == DragEvent::DIRECTION_BOTTOM_TO_TOP) { - p_RecordingView->ChangeView(RECORDINGVIEW, RECORDINGLISTVIEW); + if (p_RecordingView->GetRecordingViewScrollView(RECORDINGVIEW) != nullptr && + p_RecordingView->GetRecordingViewScrollView(RECORDINGVIEW)->IsVisible() == true) + { + p_RecordingView->ChangeView(RECORDINGVIEW, RECORDINGLISTVIEW); + } return true; } return true; -- 2.17.1