From 798335893246b36305301baf9ced5405037c70e6 Mon Sep 17 00:00:00 2001 From: Myungki Lee Date: Fri, 22 Sep 2017 18:18:15 +0900 Subject: [PATCH] [shortcut] Add resultcb for AddToWidget func Change-Id: Ic9942909cbd526ad283b2788288b1e43956d64a6 Signed-off-by: Myungki Lee --- .../Tizen.Applications.Shortcut/ShortcutManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tizen.Applications.Shortcut/Tizen.Applications.Shortcut/ShortcutManager.cs b/src/Tizen.Applications.Shortcut/Tizen.Applications.Shortcut/ShortcutManager.cs index 3b4e7c4..6fe1311 100755 --- a/src/Tizen.Applications.Shortcut/Tizen.Applications.Shortcut/ShortcutManager.cs +++ b/src/Tizen.Applications.Shortcut/Tizen.Applications.Shortcut/ShortcutManager.cs @@ -105,10 +105,10 @@ namespace Tizen.Applications.Shortcut widgetAddResult = new Interop.Shortcut.ResultCallback(WidgetAddResultCallback); } - err = Interop.Shortcut.AddToWidget(shortcut.ShortcutName, shortcut.WidgetSize, shortcut.WidgetId, shortcut.IconPath, shortcut.Period, Convert.ToInt32(shortcut.IsAllowDuplicate), null, IntPtr.Zero); + err = Interop.Shortcut.AddToWidget(shortcut.ShortcutName, shortcut.WidgetSize, shortcut.WidgetId, shortcut.IconPath, shortcut.Period, Convert.ToInt32(shortcut.IsAllowDuplicate), widgetAddResult, IntPtr.Zero); if (err != Interop.Shortcut.ErrorCode.None) { - throw ShortcutErrorFactory.GetException(err, "unable to add shortcut"); + throw ShortcutErrorFactory.GetException(err, "unable to add widget"); } } catch (Exception e) -- 2.7.4