From 68281e6bd32eee9e4195eaab1b080462a0ee336c Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Tue, 27 Aug 2024 19:49:03 +0800 Subject: [PATCH] =?utf8?q?=E5=B1=8F=E8=94=BDKeyInputListener=E9=87=8C?= =?utf8?q?=E9=9D=A2=E7=9A=84=E4=B8=8D=E4=BD=BF=E7=94=A8=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/fd230app/nativeui/key/src/KeyInputListener.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 49dab4d82..2ab687bc1 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/key/src/KeyInputListener.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/key/src/KeyInputListener.cpp @@ -140,14 +140,16 @@ namespace OHOS // 短按电源键 if (longPressFlag == 0 && pressFlag == 1) { +#if 0 // 如果当前页面是音量卡片或正在通话中,则执行音量+操作 if (currentViewId == VIEW_INCOMING_CALL || NotificationManager::GetInstance()->GetWatchCallStatus()) { // 音量卡片 - // 音量+ + // 音量 CallVolumeDipSwitchControl(VOLUMEUP); } - else if (currentViewId != VIEW_MAIN) // 如果当前页面不是主表盘,如果屏幕亮起,则先处理闹钟通知再切换到主表盘页面 +#endif + if (currentViewId != VIEW_MAIN) // 如果当前页面不是主表盘,如果屏幕亮起,则先处理闹钟通知再切换到主表盘页面 { if (mcu_pms_is_screen_on()) { -- 2.17.1