Changes image resources
authorHyerim Kim <rimi.kim@samsung.com>
Thu, 27 Apr 2017 04:40:51 +0000 (13:40 +0900)
committerChulSeung Kim <charles0.kim@samsung.com>
Thu, 8 Jun 2017 09:34:53 +0000 (18:34 +0900)
Added test code of getting recent item for demo.

Change-Id: I40d152d46badf20b331e5a7d07e0f18e60d112d1
Signed-off-by: Hyerim Kim <rimi.kim@samsung.com>
LibTVRefCommonPortable/Models/RecentShortcutController.cs
TVHome/TVHome.TizenTV/TVHome.TizenTV.csproj
TVHome/TVHome.TizenTV/res/btn_option_menu_nocontent_bg.9.png
TVHome/TVHome.TizenTV/res/ic_list_thumbnail_gradient_focused.9.png [new file with mode: 0755]
TVHome/TVHome.TizenTV/res/ic_list_thumbnail_gradient_normal.9.png [new file with mode: 0755]
TVHome/TVHome.TizenTV/res/ic_tizen_list_thumbnail_gradient_focused.9.png [deleted file]
TVHome/TVHome.TizenTV/res/ic_tizen_list_thumbnail_gradient_normal.9.png [deleted file]

index 030187a..c010985 100755 (executable)
@@ -72,7 +72,26 @@ namespace LibTVRefCommonPortable.Models
         {
             List<RecentShortcutInfo> recentShortcutInfoList = new List<RecentShortcutInfo>();
 
-            var recentApps = ApplicationManagerUtils.GetRecentApplications();
+            var defaultStateDescription = new StateDescription()
+            {
+                Label = "Youtube",
+                IconPath = "ic_home_settings_all_138.png",
+                Action = new AppControlAction()
+                {
+                    AppID = "org.tizen.example.Youtube.TizenTV",
+                }
+            };
+            var recentShortcutInfo = new RecentShortcutInfo();
+            string testScreenShot = "org.tizen.example.Youtube.Tizen.png";
+
+            recentShortcutInfo.ScreenshotPath = testScreenShot;
+
+            recentShortcutInfo.StateDescriptions.Add("default", defaultStateDescription);
+            recentShortcutInfo.CurrentStateDescription = defaultStateDescription;
+            recentShortcutInfo.AppID = "org.tizen.example.Youtube.TizenTV";
+            recentShortcutInfoList.Add(recentShortcutInfo);
+
+            /*var recentApps = ApplicationManagerUtils.GetRecentApplications();
             foreach (var item in recentApps)
             {
                 if (ManagedApps.IsHiddenRecentApp(item.AppID))
@@ -116,7 +135,7 @@ namespace LibTVRefCommonPortable.Models
                 recentShortcutInfo.CurrentStateDescription = defaultStateDescription;
                 recentShortcutInfo.AppID = item.AppID;
                 recentShortcutInfoList.Add(recentShortcutInfo);
-            }
+            }*/
 
             return recentShortcutInfoList;
 
index 193a32e..c83878e 100755 (executable)
     <Content Include="res\ic_home_menu_apps_182.png" />
     <Content Include="res\ic_launcher_mediahub_138.png" />
     <Content Include="res\ic_launcher_mediahub_182.png" />
+    <Content Include="res\ic_list_thumbnail_gradient_focused.9.png" />
+    <Content Include="res\ic_list_thumbnail_gradient_normal.9.png" />
     <Content Include="res\ic_tizen_home_list_addpin_focused.png" />
     <Content Include="res\ic_tizen_home_list_addpin_normal.png" />
     <Content Include="res\ic_tizen_home_list_allapps_focused.png" />
     <Content Include="res\ic_tizen_home_menu_settings_selected.png" />
     <Content Include="res\ic_tizen_home_menu_settings_unselect.png" />
     <Content Include="res\ic_tizen_home_menu_settings_unselected.png" />
-    <Content Include="res\ic_tizen_list_thumbnail_gradient_focused.9.png" />
-    <Content Include="res\ic_tizen_list_thumbnail_gradient_normal.9.png" />
     <Content Include="res\ic_tizen_option_box_more_dimmed.png" />
     <Content Include="res\ic_tizen_option_box_more_normal.png" />
     <Content Include="res\ic_tizen_option_menu_list_box_check_focused.png" />
index a71e7f1..1ccfabb 100755 (executable)
Binary files a/TVHome/TVHome.TizenTV/res/btn_option_menu_nocontent_bg.9.png and b/TVHome/TVHome.TizenTV/res/btn_option_menu_nocontent_bg.9.png differ
diff --git a/TVHome/TVHome.TizenTV/res/ic_list_thumbnail_gradient_focused.9.png b/TVHome/TVHome.TizenTV/res/ic_list_thumbnail_gradient_focused.9.png
new file mode 100755 (executable)
index 0000000..c0f72df
Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/ic_list_thumbnail_gradient_focused.9.png differ
diff --git a/TVHome/TVHome.TizenTV/res/ic_list_thumbnail_gradient_normal.9.png b/TVHome/TVHome.TizenTV/res/ic_list_thumbnail_gradient_normal.9.png
new file mode 100755 (executable)
index 0000000..5231a0d
Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/ic_list_thumbnail_gradient_normal.9.png differ
diff --git a/TVHome/TVHome.TizenTV/res/ic_tizen_list_thumbnail_gradient_focused.9.png b/TVHome/TVHome.TizenTV/res/ic_tizen_list_thumbnail_gradient_focused.9.png
deleted file mode 100755 (executable)
index c851aa2..0000000
Binary files a/TVHome/TVHome.TizenTV/res/ic_tizen_list_thumbnail_gradient_focused.9.png and /dev/null differ
diff --git a/TVHome/TVHome.TizenTV/res/ic_tizen_list_thumbnail_gradient_normal.9.png b/TVHome/TVHome.TizenTV/res/ic_tizen_list_thumbnail_gradient_normal.9.png
deleted file mode 100755 (executable)
index 32e5a34..0000000
Binary files a/TVHome/TVHome.TizenTV/res/ic_tizen_list_thumbnail_gradient_normal.9.png and /dev/null differ