From 563f3f1a45a6fe809198acd7a4d3b770be01a781 Mon Sep 17 00:00:00 2001 From: xdongs Date: Wed, 25 Jun 2025 14:46:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=8F=E5=90=8C=E5=BC=80=E5=85=B3=E5=BC=80?= =?UTF-8?q?=EF=BC=8C=E6=99=BA=E8=83=BD=E5=BC=80=E5=85=B3=E5=85=B3=E5=9C=BA?= =?UTF-8?q?=E6=99=AF=EF=BC=8C=E6=89=8B=E8=A1=A8=E4=B8=8D=E5=8C=BA=E5=88=86?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E4=BD=A9=E6=88=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xdongs --- .../smart_reminder_center.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/services/ans/src/notification_smart_reminder/smart_reminder_center.cpp b/services/ans/src/notification_smart_reminder/smart_reminder_center.cpp index 009595bf4..7ac232e51 100644 --- a/services/ans/src/notification_smart_reminder/smart_reminder_center.cpp +++ b/services/ans/src/notification_smart_reminder/smart_reminder_center.cpp @@ -362,16 +362,8 @@ void SmartReminderCenter::InitValidDevices( request->SetNotificationControlFlags(notificationControlFlags | CONTROL_BY_SMART_REMINDER); continue; } - // app-open, smart-close not watch - if (deviceType.compare(NotificationConstant::WEARABLE_DEVICE_TYPE) != 0 && - deviceType.compare(NotificationConstant::LITEWEARABLE_DEVICE_TYPE) != 0) { - syncDevices.insert(deviceType); - continue; - } - // app-open, smart-close watch - if (!CompareStatus(STATUS_UNUSED, status)) { - syncDevices.insert(deviceType); - } + // app-open, smart-close + syncDevices.insert(deviceType); } } string syncDevicesStr; -- Gitee