From: luozheng <1732036298@qq.com> Date: Thu, 14 Mar 2024 06:08:50 +0000 (+0800) Subject: 优化录音视图 X-Git-Tag: release_V1.2.70_20241020_135402~1274^2~8^2~10 X-Git-Url: http://git.snicker.com.cn/Users/apple/Desktop/static/gitweb.js?a=commitdiff_plain;h=b38ee3decd2d2118fcc65398da61858ef04edf51;p=mirrors%2FFD230.git 优化录音视图 --- 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;