From f0018f55ec1f8d1c70f7e695061eedbccebaa11c Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Thu, 12 Mar 2026 11:37:24 +0800 Subject: [PATCH] =?utf8?q?=E8=A7=A3=E5=86=B3=E6=81=AF=E5=B1=8F=E7=8A=B6?= =?utf8?q?=E6=80=81=E4=B8=8B=E5=BD=95=E9=9F=B3=E8=BF=9B=E5=BA=A6=E6=9D=A1?= =?utf8?q?=E5=A4=B1=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../record/include/RecordingVolumeSettingView.h | 4 ++++ .../nativeui/record/src/RecordingPresenter.cpp | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/code/sdk/application/wearable/n9/nativeapp/nativeui/record/include/RecordingVolumeSettingView.h b/code/sdk/application/wearable/n9/nativeapp/nativeui/record/include/RecordingVolumeSettingView.h index a4aaf684a..bc5b08ff9 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativeui/record/include/RecordingVolumeSettingView.h +++ b/code/sdk/application/wearable/n9/nativeapp/nativeui/record/include/RecordingVolumeSettingView.h @@ -20,6 +20,10 @@ namespace OHOS static RecordingVolumeSettingView *GetInstance(); UIScrollView *RecordingVolumeSettingViewInit(void); void ClearAll(void); + SoundAndVibrationVolumeSettingView *GetSoundAndVibrationVolumeSettingView(void) + { + return p_SoundAndVibrationVolumeSettingView; + } private: SoundAndVibrationVolumeSettingView *p_SoundAndVibrationVolumeSettingView{nullptr}; UIScrollView *RecordingVolumeSettingViewScrollView{nullptr}; diff --git a/code/sdk/application/wearable/n9/nativeapp/nativeui/record/src/RecordingPresenter.cpp b/code/sdk/application/wearable/n9/nativeapp/nativeui/record/src/RecordingPresenter.cpp index 16aee20ac..b30f64440 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativeui/record/src/RecordingPresenter.cpp +++ b/code/sdk/application/wearable/n9/nativeapp/nativeui/record/src/RecordingPresenter.cpp @@ -61,6 +61,16 @@ namespace OHOS void RecordingPresenter::OnResume(void) { RootView::GetInstance()->SetOnKeyActListener(this); + if(RecordingVolumeSettingView::GetInstance()) + { + if(RecordingVolumeSettingView::GetInstance()->GetSoundAndVibrationVolumeSettingView()) + { + if(RecordingVolumeSettingView::GetInstance()->GetSoundAndVibrationVolumeSettingView()->GetVolumeProcess()) + { + RecordingVolumeSettingView::GetInstance()->GetSoundAndVibrationVolumeSettingView()->GetVolumeProcess()->RequestFocus(); + } + } + } } bool RecordingPresenter::OnDrag(UIView &view, const DragEvent &event) -- 2.17.1