[shortcut] Add resultcb for AddToWidget func 19/151919/3 preview1-00245
authorMyungki Lee <mk5004.lee@samsung.com>
Fri, 22 Sep 2017 09:18:15 +0000 (18:18 +0900)
committerMyungKi Lee <mk5004.lee@samsung.com>
Mon, 25 Sep 2017 01:45:43 +0000 (01:45 +0000)
Change-Id: Ic9942909cbd526ad283b2788288b1e43956d64a6
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
src/Tizen.Applications.Shortcut/Tizen.Applications.Shortcut/ShortcutManager.cs

index 3b4e7c4..6fe1311 100755 (executable)
@@ -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)