Updating TargetFramework in csproject and fixing SVACE issue. 37/298837/1
authorShivam Varshney/Core S/W Group /SRI-Delhi/Engineer/Samsung Electronics <shivam.v2@samsung.com>
Thu, 14 Sep 2023 05:35:06 +0000 (11:05 +0530)
committerShivam Varshney/Core S/W Group /SRI-Delhi/Engineer/Samsung Electronics <shivam.v2@samsung.com>
Thu, 14 Sep 2023 05:35:06 +0000 (11:05 +0530)
Change-Id: I3be84a0626259109545e9e2e24793ed1951dbabe
Signed-off-by: Shivam Varshney/Core S/W Group /SRI-Delhi/Engineer/Samsung Electronics <shivam.v2@samsung.com>
Notifications/Notifications.csproj
Notifications/ViewModels/NotificationsViewModel.cs
packaging/org.tizen.notifications-1.0.0.tpk

index 468b4e22af7d3294a2ff84c875bbfcc15b98b038..4fa1a9e41084165aea1b64ce06cd7bbac616e9eb 100644 (file)
@@ -2,10 +2,7 @@
 
   <PropertyGroup>
     <OutputType>Exe</OutputType>
-    <TargetFramework>tizen11.0</TargetFramework>
-    <LangVersion>8.0</LangVersion>
-    <TargetFrameworkIdentifier>Tizen</TargetFrameworkIdentifier>
-    <DisableImplicitTizenReferences>True</DisableImplicitTizenReferences>
+    <TargetFramework>netcoreapp3.1</TargetFramework>
   </PropertyGroup>
 
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
index 8423fc59309fc7d4723e48b48074363cda7e82a2..16173b629f33c77f6bb7b4c273f8b47e2a10eea9 100644 (file)
@@ -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)
index e5a0f83d89eddfe27f2f5d76e17df08fa9189971..525bc1010eaf39df5dda99aaf7f9a8bf56ac7618 100644 (file)
Binary files a/packaging/org.tizen.notifications-1.0.0.tpk and b/packaging/org.tizen.notifications-1.0.0.tpk differ