From: hcj <1224667075@qq.com> Date: Fri, 30 Aug 2024 12:09:20 +0000 (+0800) Subject: 保留通话按键调节音量功能,加大条件限制( 补2) X-Git-Tag: release_V1.2.70_20241020_135402~551 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=2882ae90b56337a5b81be8aa256ba9165b8f18ee;p=mirrors%2FFD230.git 保留通话按键调节音量功能,加大条件限制( 补2) --- 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 825f4da10..f2cf08064 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/key/src/KeyInputListener.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/key/src/KeyInputListener.cpp @@ -139,18 +139,17 @@ namespace OHOS // 短按电源键 if (longPressFlag == 0 && pressFlag == 1) { -#if 1 +#if 0 // 如果当前页面是音量卡片或正在通话中,则执行音量+操作 if (currentViewId == VIEW_INCOMING_CALL ) -#else || NotificationManager::GetInstance()->GetWatchCallStatus()) -#endif + { // 音量卡片 // 音量 CallVolumeDipSwitchControl(VOLUMEUP); return; } - +#endif if (currentViewId != VIEW_MAIN) // 如果当前页面不是主表盘,如果屏幕亮起,则先处理闹钟通知再切换到主表盘页面 { if (mcu_pms_is_screen_on()) @@ -197,18 +196,18 @@ namespace OHOS // 检查是否是短按功能键 if (longPressFlag == 0 && pressFlag == 1) { -#if 1 +#if 0 // 如果当前页面是音量卡片或正在通话中,则执行音量+操作 if (currentViewId == VIEW_INCOMING_CALL ) -#else + || NotificationManager::GetInstance()->GetWatchCallStatus()) -#endif + { // 音量卡片 // 音量- CallVolumeDipSwitchControl(VOLUMEDOWN); return; } - +#endif if (currentViewId != VIEW_MAIN) // 如果当前页面不是主表盘,如果屏幕亮起,则先处理闹钟通知再切换到主表盘页面。 { if (mcu_pms_is_screen_on())