From f2eae88f6e7a6883f35a795bf21ca4b6a07a493c Mon Sep 17 00:00:00 2001 From: Seungha Son Date: Wed, 29 Nov 2017 12:31:39 +0900 Subject: [PATCH] [Notification/NotificationEventListener]Fix wrong spelling Signed-off-by: Seungha Son Change-Id: I4410f7d11c37b4937188f1b6da6ff124a62fca08 --- .../Interop/Interop.Notification.cs | 10 +++++----- .../Tizen.Applications.Notifications/Notification.cs | 14 +++++++------- .../NotificationReplyAction.cs | 2 +- .../NotificationStyleBinder.cs | 2 +- .../Interop/Interop.NotificationEventListener.cs | 4 ++-- .../NotificationEventArgsBinder.cs | 8 ++++---- 6 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/Tizen.Applications.Notification/Interop/Interop.Notification.cs b/src/Tizen.Applications.Notification/Interop/Interop.Notification.cs index 854e1aa..1d5651b 100755 --- a/src/Tizen.Applications.Notification/Interop/Interop.Notification.cs +++ b/src/Tizen.Applications.Notification/Interop/Interop.Notification.cs @@ -203,14 +203,14 @@ internal static partial class Interop [DllImport(Libraries.Notification, EntryPoint = "notification_set_delete_timeout")] internal static extern NotificationError SetDeleteTime(NotificationSafeHandle handle, int timeout); - [DllImport(Libraries.Notification, EntryPoint = "notification_set_extention_data")] - internal static extern NotificationError SetExtentionData(NotificationSafeHandle handle, string key, SafeBundleHandle bundleHandle); + [DllImport(Libraries.Notification, EntryPoint = "notification_set_extension_data")] + internal static extern NotificationError SetExtensionData(NotificationSafeHandle handle, string key, SafeBundleHandle bundleHandle); - [DllImport(Libraries.Notification, EntryPoint = "notification_get_extention_data")] - internal static extern NotificationError GetExtentionData(NotificationSafeHandle handle, string key, out SafeBundleHandle bundleHandle); + [DllImport(Libraries.Notification, EntryPoint = "notification_get_extension_data")] + internal static extern NotificationError GetExtensionData(NotificationSafeHandle handle, string key, out SafeBundleHandle bundleHandle); [DllImport(Libraries.Notification, EntryPoint = "notification_get_args")] - internal static extern NotificationError GetExtentionBundle(NotificationSafeHandle handle, out IntPtr args, out IntPtr group_args); + internal static extern NotificationError GetExtensionBundle(NotificationSafeHandle handle, out IntPtr args, out IntPtr group_args); [DllImport(Libraries.Notification, EntryPoint = "notification_get_default_button")] internal static extern NotificationError GetDefaultButton(NotificationSafeHandle handle, out int index); diff --git a/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/Notification.cs b/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/Notification.cs index b4ec769..8ac2c21 100755 --- a/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/Notification.cs +++ b/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/Notification.cs @@ -479,7 +479,7 @@ namespace Tizen.Applications.Notifications foreach (string key in GetextraDataDictionary().Keys) { Log.Info(LogTag, "Start to bind Notification.ExtenderData to SafeHandle"); - Interop.Notification.SetExtentionData(Handle, key, extraDataDictionary[key].SafeBundleHandle); + Interop.Notification.SetExtensionData(Handle, key, extraDataDictionary[key].SafeBundleHandle); } foreach (Notification.StyleBase style in styleDictionary.Values) @@ -503,23 +503,23 @@ namespace Tizen.Applications.Notifications internal Notification Build() { - IntPtr extention = IntPtr.Zero; - IntPtr extentionBundlePtr = IntPtr.Zero; + IntPtr extension = IntPtr.Zero; + IntPtr extensionBundlePtr = IntPtr.Zero; NotificationBinder.BindSafeHandle(this); - Interop.Notification.GetExtentionBundle(Handle, out extention, out extentionBundlePtr); + Interop.Notification.GetExtensionBundle(Handle, out extension, out extensionBundlePtr); - if (extention != IntPtr.Zero) + if (extension != IntPtr.Zero) { - Bundle bundle = new Bundle(new SafeBundleHandle(extention, false)); + Bundle bundle = new Bundle(new SafeBundleHandle(extension, false)); foreach (string key in bundle.Keys) { if (key.StartsWith("_NOTIFICATION_EXTENSION_EVENT_")) continue; SafeBundleHandle sbh; - Interop.Notification.GetExtentionData(Handle, key, out sbh); + Interop.Notification.GetExtensionData(Handle, key, out sbh); extraDataDictionary.Add(key, new Bundle(sbh)); } } diff --git a/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/NotificationReplyAction.cs b/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/NotificationReplyAction.cs index 42d34ff..38cd443 100755 --- a/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/NotificationReplyAction.cs +++ b/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/NotificationReplyAction.cs @@ -106,7 +106,7 @@ namespace Tizen.Applications.Notifications Bundle bundle = new Bundle(); bundle.AddItem(replyKey, ((int)this.ParentIndex).ToString()); - Interop.Notification.SetExtentionData(notification.Handle, replyKey, bundle.SafeBundleHandle); + Interop.Notification.SetExtensionData(notification.Handle, replyKey, bundle.SafeBundleHandle); Interop.Notification.SetPlaceHolderLength(notification.Handle, this.ReplyMax); Interop.Notification.SetText(notification.Handle, NotificationText.PlaceHolder, PlaceHolderText, null, -1); diff --git a/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/NotificationStyleBinder.cs b/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/NotificationStyleBinder.cs index f84c6f7..d32b721 100755 --- a/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/NotificationStyleBinder.cs +++ b/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/NotificationStyleBinder.cs @@ -255,7 +255,7 @@ namespace Tizen.Applications.Notifications try { SafeBundleHandle bundleHandle; - Interop.Notification.GetExtentionData(notification.Handle, replyKey, out bundleHandle); + Interop.Notification.GetExtensionData(notification.Handle, replyKey, out bundleHandle); Bundle bundle = new Bundle(bundleHandle); reply.ParentIndex = (ButtonIndex)int.Parse(bundle.GetItem(replyKey).ToString()); } diff --git a/src/Tizen.Applications.NotificationEventListener/Interop/Interop.NotificationEventListener.cs b/src/Tizen.Applications.NotificationEventListener/Interop/Interop.NotificationEventListener.cs index 9e36242..85fbc4b 100755 --- a/src/Tizen.Applications.NotificationEventListener/Interop/Interop.NotificationEventListener.cs +++ b/src/Tizen.Applications.NotificationEventListener/Interop/Interop.NotificationEventListener.cs @@ -138,7 +138,7 @@ internal static partial class Interop [DllImport(Libraries.NotificationEventListener, EntryPoint = "notification_get_property")] internal static extern ErrorCode GetProperties(NotificationSafeHandle handle, out int flags); - [DllImport(Libraries.NotificationEventListener, EntryPoint = "notification_get_extention_data")] + [DllImport(Libraries.NotificationEventListener, EntryPoint = "notification_get_extension_data")] internal static extern ErrorCode GetExtender(NotificationSafeHandle handle, string key, out SafeBundleHandle value); [DllImport(Libraries.NotificationEventListener, EntryPoint = "notification_clone")] @@ -148,7 +148,7 @@ internal static partial class Interop internal static extern ErrorCode NotificationListFree(IntPtr list); [DllImport(Libraries.NotificationEventListener, EntryPoint = "notification_get_args")] - internal static extern ErrorCode GetExtentionBundle(NotificationSafeHandle handle, out IntPtr args, out IntPtr groupArgs); + internal static extern ErrorCode GetExtensionBundle(NotificationSafeHandle handle, out IntPtr args, out IntPtr groupArgs); [DllImport(Libraries.NotificationEventListener, EntryPoint = "notification_get_hide_timeout")] internal static extern ErrorCode GetHideTimeout(NotificationSafeHandle handle, out int timeout); diff --git a/src/Tizen.Applications.NotificationEventListener/Tizen.Applications.NotificationEventListener/NotificationEventArgsBinder.cs b/src/Tizen.Applications.NotificationEventListener/Tizen.Applications.NotificationEventListener/NotificationEventArgsBinder.cs index d30292e..c70c072 100755 --- a/src/Tizen.Applications.NotificationEventListener/Tizen.Applications.NotificationEventListener/NotificationEventArgsBinder.cs +++ b/src/Tizen.Applications.NotificationEventListener/Tizen.Applications.NotificationEventListener/NotificationEventArgsBinder.cs @@ -35,7 +35,7 @@ namespace Tizen.Applications.NotificationEventListener NotificationLayout layout; NotificationType type; string text; - IntPtr extention = IntPtr.Zero; + IntPtr extension = IntPtr.Zero; IntPtr dummy = IntPtr.Zero; SafeAppControlHandle appcontrol = null; @@ -158,15 +158,15 @@ namespace Tizen.Applications.NotificationEventListener eventargs.IsVisible = false; } - err = Interop.NotificationEventListener.GetExtentionBundle(eventargs.Handle, out extention, out dummy); + err = Interop.NotificationEventListener.GetExtensionBundle(eventargs.Handle, out extension, out dummy); if (err != Interop.NotificationEventListener.ErrorCode.None) { Log.Info(LogTag, "unable to get Extender"); } - if (extention != IntPtr.Zero) + if (extension != IntPtr.Zero) { - Bundle bundle = new Bundle(new SafeBundleHandle(extention, false)); + Bundle bundle = new Bundle(new SafeBundleHandle(extension, false)); foreach (string key in bundle.Keys) { if (key.StartsWith("_NOTIFICATION_EXTENSION_EVENT_")) -- 2.7.4