From: Shivam Varshney/Core S/W Group /SRI-Delhi/Engineer/Samsung Electronics Date: Thu, 14 Sep 2023 05:35:06 +0000 (+0530) Subject: Updating TargetFramework in csproject and fixing SVACE issue. X-Git-Tag: accepted/tizen/unified/20230918.154722~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ebffc38914c8fa02865e56dd76c1e6fceef8c21a;p=profile%2Fiot%2Fapps%2Fdotnet%2Fnotifications.git Updating TargetFramework in csproject and fixing SVACE issue. Change-Id: I3be84a0626259109545e9e2e24793ed1951dbabe Signed-off-by: Shivam Varshney/Core S/W Group /SRI-Delhi/Engineer/Samsung Electronics --- diff --git a/Notifications/Notifications.csproj b/Notifications/Notifications.csproj index 468b4e2..4fa1a9e 100644 --- a/Notifications/Notifications.csproj +++ b/Notifications/Notifications.csproj @@ -2,10 +2,7 @@ Exe - tizen11.0 - 8.0 - Tizen - True + netcoreapp3.1 diff --git a/Notifications/ViewModels/NotificationsViewModel.cs b/Notifications/ViewModels/NotificationsViewModel.cs index 8423fc5..16173b6 100644 --- a/Notifications/ViewModels/NotificationsViewModel.cs +++ b/Notifications/ViewModels/NotificationsViewModel.cs @@ -122,6 +122,10 @@ namespace Notifications.ViewModels if (e.CurrentSelection.Count != 0 && e.CurrentSelection[0] is NotificationsModel notificationsModel) { var notificationsList = NotificationListenerManager.GetList(); + if (notificationsList == null || notificationsList.Count == 0) + { + return; + } foreach (NotificationEventArgs notificationArgs in notificationsList) { if (notificationArgs.UniqueNumber == notificationsModel.UniqueNumber) diff --git a/packaging/org.tizen.notifications-1.0.0.tpk b/packaging/org.tizen.notifications-1.0.0.tpk index e5a0f83..525bc10 100644 Binary files a/packaging/org.tizen.notifications-1.0.0.tpk and b/packaging/org.tizen.notifications-1.0.0.tpk differ