From f3aea3c62283d22edd343ac09d4a6f9309afbdb6 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Sat, 14 Sep 2024 18:08:19 +0800 Subject: [PATCH] =?utf8?q?=E6=A0=B9=E6=8D=AE=E7=A6=85=E9=81=93=E4=B8=8A?= =?utf8?q?=E6=9C=9F=E6=9C=9B=EF=BC=9AAPP=E6=9F=A5=E6=89=BE=E6=89=8B?= =?utf8?q?=E8=A1=A8=E5=92=8C=E9=97=B9=E9=92=9F=EF=BC=8C=E5=8B=BF=E6=89=B0?= =?utf8?q?=E7=9D=A1=E7=9C=A0=E9=9D=99=E9=9F=B3=E6=A8=A1=E5=BC=8F=E4=B8=8B?= =?utf8?q?=E9=83=BD=E6=9C=89=E5=93=8D=E9=93=83=E5=92=8C=E9=9C=87=E5=8A=A8?= =?utf8?q?=E6=8F=90=E9=86=92=20#421=E8=A7=A3=E5=86=B3=EF=BC=8C=20=E7=9D=A1?= =?utf8?q?=E7=9C=A0=E6=A8=A1=E5=BC=8F=EF=BC=8C=E9=97=B9=E9=92=9F=E6=97=A0?= =?utf8?q?=E5=93=8D=E9=93=83=E9=9C=87=E5=8A=A8bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../src/notify/alarm_notification.cpp | 8 ++++---- .../src/notify/findwatch_notification.cpp | 18 +++++++++--------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/code/sdk/application/wearable/service/msg_center/src/notify/alarm_notification.cpp b/code/sdk/application/wearable/service/msg_center/src/notify/alarm_notification.cpp index d1585d6c6..4b81510bd 100755 --- a/code/sdk/application/wearable/service/msg_center/src/notify/alarm_notification.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/notify/alarm_notification.cpp @@ -103,10 +103,10 @@ namespace OHOS } else { - if (true == ConfigModel::GetInstance()->GetDnotdisturb() || (uapi_sleep_mode_flag_get())) - { - return; - } + // if (true == ConfigModel::GetInstance()->GetDnotdisturb() || (uapi_sleep_mode_flag_get())) + // { + // return; + // } if (g_alarmView) { ui_api_vibrate_once_func(); diff --git a/code/sdk/application/wearable/service/msg_center/src/notify/findwatch_notification.cpp b/code/sdk/application/wearable/service/msg_center/src/notify/findwatch_notification.cpp index 439d3a34a..3db3e3ad6 100644 --- a/code/sdk/application/wearable/service/msg_center/src/notify/findwatch_notification.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/notify/findwatch_notification.cpp @@ -2,7 +2,7 @@ * @Author: luozheng 1732036298@qq.com * @Date: 2024-03-25 17:33:47 * @LastEditors: luozheng 1732036298@qq.com - * @LastEditTime: 2024-09-09 21:29:58 + * @LastEditTime: 2024-09-14 17:31:21 * @FilePath: /FD230/code/sdk/application/wearable/service/msg_center/src/notify/findwatch_notification.cpp * @details:实现查找手表的功能一般需要手表和智能手机之间的配合,通常是通过手机上的应用(App)或其他设备发送指令给手表,触发手表的查找功能。 * 以下是基本的实现步骤: @@ -131,10 +131,10 @@ namespace OHOS void FindWatchViewEventListener::SetVibration(void) { - if(true == ConfigModel::GetInstance()->GetDnotdisturb() || (uapi_sleep_mode_flag_get())) - { - return; - } + // if(true == ConfigModel::GetInstance()->GetDnotdisturb() || (uapi_sleep_mode_flag_get())) + // { + // return; + // } if(nullptr != FindWatchGroupView) { @@ -321,10 +321,10 @@ namespace OHOS path_ = path; ScreenTurnOn(-1); // 亮屏操作 - if(true == ConfigModel::GetInstance()->GetDnotdisturb() || (uapi_sleep_mode_flag_get())) - { - return; - } + // if(true == ConfigModel::GetInstance()->GetDnotdisturb() || (uapi_sleep_mode_flag_get())) + // { + // return; + // } // 将"开启查找手表铃声"任务发布到异步线程 GraphicService::GetInstance()->PostGraphicEvent( -- 2.17.1