From a8333f3055af4526e06514df37b0b1394059a9a8 Mon Sep 17 00:00:00 2001 From: luojingsong Date: Fri, 27 Dec 2024 17:18:12 +0800 Subject: [PATCH] =?UTF-8?q?cherry=20pick=201d11698=20from=20https://gitee.?= =?UTF-8?q?com/shaw=5Fcoco/notification=5Fdistributed=5Fnotification=5Fser?= =?UTF-8?q?vice/pulls/2587=20=E5=AE=9E=E5=86=B52.0=EF=BC=9A=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E9=95=BF=E6=97=B6=E5=8D=B3=E6=97=B6=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: luojingsong Change-Id: I56e8293922b1f8a40764fe0fa166dc7970b614b9 --- frameworks/ans/src/notification_capsule.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/frameworks/ans/src/notification_capsule.cpp b/frameworks/ans/src/notification_capsule.cpp index caf02024c..8cbdb3166 100644 --- a/frameworks/ans/src/notification_capsule.cpp +++ b/frameworks/ans/src/notification_capsule.cpp @@ -216,19 +216,6 @@ bool NotificationCapsule::Marshalling(Parcel &parcel) const } } - if (!parcel.WriteInt32(time_)) { - ANS_LOGE("Write time_ fail."); - return false; - } - - parcel.WriteInt32(static_cast(capsuleButton_.size())); - for (const auto& button : capsuleButton_) { - if (!parcel.WriteParcelable(&button)) { - ANS_LOGE("Failed to write card button"); - return false; - } - } - return true; } -- Gitee