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