From eda9ab07c0ff4ad1198915bb8f7888ec5a713991 Mon Sep 17 00:00:00 2001 From: zhaoyingzhen Date: Tue, 11 Feb 2025 17:04:08 +0800 Subject: [PATCH] fix: pinned application, notifications display order is incorrect as title Log: as title Bug: PMS-299887 --- panels/notification/center/notifymodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panels/notification/center/notifymodel.cpp b/panels/notification/center/notifymodel.cpp index 64cca22c8..b35850ba3 100644 --- a/panels/notification/center/notifymodel.cpp +++ b/panels/notification/center/notifymodel.cpp @@ -411,7 +411,7 @@ bool NotifyModel::greaterNotify(const AppNotifyItem *item1, const AppNotifyItem // `group` is order high in same group. if (item1->appName() == item2->appName()) { if (item1->type() == item2->type()) { - return entity1.cTime() >= entity2.cTime(); + return item1->entity().cTime() >= item2->entity().cTime(); } return item1->type() == NotifyType::Group; }