From: Caisking <3449750381@qq.com> Date: Tue, 27 Aug 2024 11:49:03 +0000 (+0800) Subject: 屏蔽KeyInputListener里面的不使用功能 X-Git-Tag: release_V1.2.70_20241020_135402~577 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F807%2Fhead;p=mirrors%2FFD230.git 屏蔽KeyInputListener里面的不使用功能 --- 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()) {