[Notification] Save the hidetime, deletetime value 75/171675/1
authormk5004.lee <mk5004.lee@samsung.com>
Tue, 6 Mar 2018 10:20:28 +0000 (19:20 +0900)
committermk5004.lee <mk5004.lee@samsung.com>
Tue, 6 Mar 2018 10:21:26 +0000 (19:21 +0900)
- regardless of IsAutoRemove

Change-Id: Iee38a1e7ef1dc33a28c99f1402f503536bacc7cf
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
src/Tizen.Applications.Notification/Tizen.Applications.Notifications/NotificationStyleBinder.cs

index 5824a1883b3e2f1469376651ec73f20ef0abf894..8b837bc993177c980e40648a961a84952d0e892c 100755 (executable)
@@ -72,17 +72,22 @@ namespace Tizen.Applications.Notifications
         internal static void BindObject(Notification notification)
         {
             int flag;
+            int hidetime = 0;
+            int deletetime = 0;
             NotificationError ret = NotificationError.None;
             Notification.ActiveStyle style = (Notification.ActiveStyle)notification.GetStyle("Active");
 
             Interop.Notification.SetAutoRemove(notification.Handle, style.IsAutoRemove);
-            if (style.IsAutoRemove == true)
-            {
-                int hidetime;
-                int deletetime;
-                style.GetRemoveTime(out hidetime, out deletetime);
 
+            style.GetRemoveTime(out hidetime, out deletetime);
+
+            if (hidetime > 0)
+            {
                 Interop.Notification.SetHideTime(notification.Handle, hidetime);
+            }
+
+            if (deletetime > 0)
+            {
                 try
                 {
                     Interop.Notification.SetDeleteTime(notification.Handle, deletetime);