From: DotnetBuild Date: Fri, 15 Dec 2017 02:34:54 +0000 (+0900) Subject: Merge remote-tracking branch 'origin/rel/api_4' into tizen_4.0 X-Git-Tag: submit/tizen_4.0/20171215.023456~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e2095ad3b350b885398360d9caef31e7cbeb68a;hp=c0774120b7f0441214b415a8aa0e2b1737b89963;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Merge remote-tracking branch 'origin/rel/api_4' into tizen_4.0 --- diff --git a/src/Tizen.Applications.NotificationEventListener/Tizen.Applications.NotificationEventListener/NotificationEventArgsEnumerations.cs b/src/Tizen.Applications.NotificationEventListener/Tizen.Applications.NotificationEventListener/NotificationEventArgsEnumerations.cs index 7ed4c3c..31a5b09 100755 --- a/src/Tizen.Applications.NotificationEventListener/Tizen.Applications.NotificationEventListener/NotificationEventArgsEnumerations.cs +++ b/src/Tizen.Applications.NotificationEventListener/Tizen.Applications.NotificationEventListener/NotificationEventArgsEnumerations.cs @@ -182,6 +182,11 @@ namespace Tizen.Applications.NotificationEventListener internal enum NotificationType { /// + /// Type none. + /// + None = -1, + + /// /// Notification type. /// Notification = 0, diff --git a/src/Tizen.Applications.NotificationEventListener/Tizen.Applications.NotificationEventListener/NotificationListenerManager.cs b/src/Tizen.Applications.NotificationEventListener/Tizen.Applications.NotificationEventListener/NotificationListenerManager.cs index 89a3f4b..d0c8382 100755 --- a/src/Tizen.Applications.NotificationEventListener/Tizen.Applications.NotificationEventListener/NotificationListenerManager.cs +++ b/src/Tizen.Applications.NotificationEventListener/Tizen.Applications.NotificationEventListener/NotificationListenerManager.cs @@ -353,34 +353,7 @@ namespace Tizen.Applications.NotificationEventListener IntPtr currentList = IntPtr.Zero; IList list = new List(); - err = Interop.NotificationEventListener.GetList(NotificationType.Notification, -1, out notificationList); - if (err != Interop.NotificationEventListener.ErrorCode.None) - { - throw NotificationEventListenerErrorFactory.GetException(err, "unable to get notification list"); - } - - if (notificationList != IntPtr.Zero) - { - currentList = notificationList; - while (currentList != IntPtr.Zero) - { - IntPtr notification; - NotificationEventArgs eventargs = new NotificationEventArgs(); - - notification = Interop.NotificationEventListener.GetData(currentList); - - eventargs = NotificationEventArgsBinder.BindObject(notification, false); - - list.Add(eventargs); - - currentList = Interop.NotificationEventListener.GetNext(currentList); - } - - Interop.NotificationEventListener.NotificationListFree(notificationList); - notificationList = IntPtr.Zero; - } - - err = Interop.NotificationEventListener.GetList(NotificationType.Ongoing, -1, out notificationList); + err = Interop.NotificationEventListener.GetList(NotificationType.None, -1, out notificationList); if (err != Interop.NotificationEventListener.ErrorCode.None) { throw NotificationEventListenerErrorFactory.GetException(err, "unable to get notification list");