diff --git a/interfaces/inner_api/notification_request.h b/interfaces/inner_api/notification_request.h index ee0584c5066771c9d533d22aaa73e8b4dc4594dd..853dd3a8f2a7a5b4a54528d98560c40029b6911d 100644 --- a/interfaces/inner_api/notification_request.h +++ b/interfaces/inner_api/notification_request.h @@ -1156,7 +1156,7 @@ private: NotificationContent::Type notificationContentType_ {NotificationContent::Type::NONE}; bool showDeliveryTime_ {false}; - bool tapDismissed_ {false}; + bool tapDismissed_ {true}; bool colorEnabled_ {false}; bool alertOneTime_ {false}; bool showStopwatch_ {false}; diff --git a/services/ans/src/advanced_notification_service.cpp b/services/ans/src/advanced_notification_service.cpp index 1cdf6676a6381cc1782c520438077ff53dbe9e0c..708b7a00ad7f476ecb735649b2b70f42d3edabcf 100644 --- a/services/ans/src/advanced_notification_service.cpp +++ b/services/ans/src/advanced_notification_service.cpp @@ -488,7 +488,7 @@ ErrCode AdvancedNotificationService::PublishPreparedNotification( #endif })); - if (record->request->IsTapDismissed()) { + if (record->request->GetAutoDeletedTime() > GetCurrentTime()) { StartAutoDelete(record); } return result;