屏蔽KeyInputListener功能键没有使用到的功能
authorCaisking <3449750381@qq.com>
Fri, 30 Aug 2024 09:57:38 +0000 (17:57 +0800)
committerCaisking <3449750381@qq.com>
Fri, 30 Aug 2024 09:57:38 +0000 (17:57 +0800)
code/sdk/application/wearable/fd230app/nativeui/key/src/KeyInputListener.cpp

index 555e280..8ec2b2a 100644 (file)
@@ -194,6 +194,7 @@ namespace OHOS
             // 检查是否是短按功能键
             if (longPressFlag == 0 && pressFlag == 1)
             {
+#if 0
                 // 如果当前页面是音量卡片或正在通话中,则执行音量减操作
                 if (currentViewId == VIEW_INCOMING_CALL ||
                     NotificationManager::GetInstance()->GetWatchCallStatus())
@@ -201,6 +202,7 @@ namespace OHOS
                     // 音量-
                     CallVolumeDipSwitchControl(VOLUMEDOWN);
                 }
+#endif
                 else if (currentViewId != VIEW_MAIN) // 如果当前页面不是主表盘,如果屏幕亮起,则先处理闹钟通知再切换到主表盘页面。
                 {
                     if (mcu_pms_is_screen_on())