From: hcj <1224667075@qq.com> Date: Fri, 30 Aug 2024 11:54:57 +0000 (+0800) Subject: 保留通话按键调节音量功能,加大条件限制(补) X-Git-Tag: release_V1.2.70_20241020_135402~552 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=4d56251db6832dc9792bcaaab979fb45906babcb;p=mirrors%2FFD230.git 保留通话按键调节音量功能,加大条件限制(补) --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/key/src/KeyInputListener.cpp b/code/sdk/application/wearable/fd230app/nativeui/key/src/KeyInputListener.cpp index e50434dea..825f4da10 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/key/src/KeyInputListener.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/key/src/KeyInputListener.cpp @@ -148,6 +148,7 @@ namespace OHOS { // 音量卡片 // 音量 CallVolumeDipSwitchControl(VOLUMEUP); + return; } if (currentViewId != VIEW_MAIN) // 如果当前页面不是主表盘,如果屏幕亮起,则先处理闹钟通知再切换到主表盘页面 @@ -205,6 +206,7 @@ namespace OHOS { // 音量卡片 // 音量- CallVolumeDipSwitchControl(VOLUMEDOWN); + return; } if (currentViewId != VIEW_MAIN) // 如果当前页面不是主表盘,如果屏幕亮起,则先处理闹钟通知再切换到主表盘页面。