From: Seungha Son Date: Thu, 7 Dec 2017 03:19:12 +0000 (+0900) Subject: [Notification] Fix ActiveStyle binding X-Git-Tag: 5.0.0-preview1-00404^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F28%2F163028%2F2;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Notification] Fix ActiveStyle binding If you only set RemoveTime on the ActiveStyle object, the ActiveStyle binding fails on NotificationManager.Load() Signed-off-by: Seungha Son Change-Id: Id3f4606711a28f12b9631fd7a795b0dac3a41b9e --- diff --git a/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/NotificationStyleBinder.cs b/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/NotificationStyleBinder.cs index d32b721..8f26a0a 100755 --- a/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/NotificationStyleBinder.cs +++ b/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/NotificationStyleBinder.cs @@ -142,7 +142,6 @@ namespace Tizen.Applications.Notifications if ((appList & (int)NotificationDisplayApplist.Active) != 0) { Notification.ActiveStyle active = new Notification.ActiveStyle(); - bool isExisted = false; bool autoRemove; string path, text; SafeAppControlHandle appcontrol = null; @@ -169,7 +168,6 @@ namespace Tizen.Applications.Notifications button.Text = text; button.Index = (ButtonIndex)i; active.AddButtonAction(button); - isExisted = true; } } @@ -216,7 +214,6 @@ namespace Tizen.Applications.Notifications Interop.Notification.GetImage(notification.Handle, NotificationImage.Background, out path); if (string.IsNullOrEmpty(path) == false) { - isExisted = true; active.BackgroundImage = path; } @@ -250,8 +247,6 @@ namespace Tizen.Applications.Notifications Interop.Notification.GetPlaceHolderLength(notification.Handle, out holderLength); reply.ReplyMax = holderLength; - isExisted = true; - try { SafeBundleHandle bundleHandle; @@ -267,10 +262,7 @@ namespace Tizen.Applications.Notifications active.ReplyAction = reply; } - if (isExisted) - { - notification.AddStyle(active); - } + notification.AddStyle(active); } } }