From 842e48055f4f5e7101334ca6cb0cd1f3591205dc Mon Sep 17 00:00:00 2001 From: Myungki Lee Date: Wed, 26 Oct 2016 14:05:33 +0900 Subject: [PATCH] Fix notification removebutton api - delete SetEventHandler The app_control shouldn't be set. Change-Id: I01f7539de79a7c3bb038668a45a0689949020c9b Signed-off-by: Myungki Lee --- Tizen.Applications/Tizen.Applications/EventNotification.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Tizen.Applications/Tizen.Applications/EventNotification.cs b/Tizen.Applications/Tizen.Applications/EventNotification.cs index b28b18b..5878569 100755 --- a/Tizen.Applications/Tizen.Applications/EventNotification.cs +++ b/Tizen.Applications/Tizen.Applications/EventNotification.cs @@ -225,8 +225,6 @@ namespace Tizen.Applications.Notifications /// public void RemoveButton(ButtonIndex index) { - AppControl app = new AppControl(); - int ret = Interop.Notification.RemoveButton(_handle, (int)index + 1); if(ret != (int)NotificationError.None) { @@ -244,12 +242,6 @@ namespace Tizen.Applications.Notifications { throw NotificationErrorFactory.GetException((NotificationError)ret, "unable to set button text"); } - - ret = Interop.Notification.SetEventHandler(_handle, (int)index, app.SafeAppControlHandle); - if (ret != (int)NotificationError.None) - { - throw NotificationErrorFactory.GetException((NotificationError)ret, "unable to set button event handler"); - } } } } -- 2.7.4