Exclude Lock from default NotificationArea
authorSeungha Son <seungha.son@samsung.com>
Tue, 18 Apr 2017 03:19:55 +0000 (12:19 +0900)
committerSeungha Son <seungha.son@samsung.com>
Tue, 18 Apr 2017 03:24:54 +0000 (12:24 +0900)
Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I5b5373c1d70a58a16bd94d9e8660619ff0e5d277

src/Tizen.Applications.Notification/Tizen.Applications/Notification.cs
src/Tizen.Applications.Notification/Tizen.Applications/NotificationEnumerations.cs

index 72d8ccd..d9d0d59 100755 (executable)
@@ -423,6 +423,7 @@ namespace Tizen.Applications.Notifications
                     return NotificationArea.None;
                 }
 
+                appList = appList & ~((int)NotificationArea.Lock);
                 return (NotificationArea)appList;
             }
             set
index 6b16662..f0bf917 100755 (executable)
@@ -15,6 +15,7 @@
  */
 
 using System;
+using System.ComponentModel;
 
 namespace Tizen.Applications.Notifications
 {
@@ -58,7 +59,10 @@ namespace Tizen.Applications.Notifications
         /// <summary>
         /// Value for active notification
         /// </summary>
-        Active = 1 << 4
+        Active = 1 << 4,
+
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        Lock = 1 << 2
     }
 
     /// <summary>