From: Myungki Lee Date: Wed, 26 Oct 2016 05:05:33 +0000 (+0900) Subject: Fix notification removebutton api X-Git-Tag: submit/trunk/20170823.075128~121^2~123 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=842e48055f4f5e7101334ca6cb0cd1f3591205dc;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Fix notification removebutton api - delete SetEventHandler The app_control shouldn't be set. Change-Id: I01f7539de79a7c3bb038668a45a0689949020c9b Signed-off-by: Myungki Lee --- 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"); - } } } }