Add condition for defaultShortcutInfo
authorHyerim Kim <rimi.kim@samsung.com>
Wed, 15 Mar 2017 11:23:27 +0000 (20:23 +0900)
committerChulSeung Kim <charles0.kim@samsung.com>
Thu, 8 Jun 2017 09:34:47 +0000 (18:34 +0900)
Change-Id: I41360782b4dce75f1d0e7857bbde42c548a44104
Signed-off-by: Hyerim Kim <rimi.kim@samsung.com>
TVHome/TVHome/Views/SubPanel.xaml.cs

index 5c4b9e1be1ba91e97751549ad32093f83b3ec91c..d5c15ac9d6ca79c9e6092cd31e504d091d36d7f6 100755 (executable)
@@ -73,7 +73,14 @@ namespace TVHome.Views
                 {
                     if (item is AppShortcutInfo)
                     {
-                        OnUnpinCommand.Execute((item as AppShortcutInfo).AppID);
+                        if (button is SubPanelAllAppsButton || button is SubPanelReservedButton)
+                        {
+                            item.DoAction();
+                        }
+                        else
+                        {
+                            OnUnpinCommand.Execute((item as AppShortcutInfo).AppID);
+                        }
                     }
                     else
                     {