Fix notification removebutton api
authorMyungki Lee <mk5004.lee@samsung.com>
Wed, 26 Oct 2016 05:05:33 +0000 (14:05 +0900)
committerMyungki Lee <mk5004.lee@samsung.com>
Wed, 26 Oct 2016 05:05:33 +0000 (14:05 +0900)
- delete SetEventHandler
  The app_control shouldn't be set.

Change-Id: I01f7539de79a7c3bb038668a45a0689949020c9b
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
Tizen.Applications/Tizen.Applications/EventNotification.cs

index b28b18b..5878569 100755 (executable)
@@ -225,8 +225,6 @@ namespace Tizen.Applications.Notifications
         /// </example>
         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");
-            }
         }
     }
 }