Display screentshot images for the recently used apps
authorKyuho Jo <kyuho.jo@samsung.com>
Sun, 16 Apr 2017 05:11:14 +0000 (14:11 +0900)
committerChulSeung Kim <charles0.kim@samsung.com>
Thu, 8 Jun 2017 09:34:52 +0000 (18:34 +0900)
Signed-off-by: Kyuho Jo <kyuho.jo@samsung.com>
Change-Id: Icfb1a3f32094e26b5350097da6a48c595aec8f55

LibTVRefCommonPortable/Models/RecentShortcutController.cs
LibTVRefCommonPortable/Utils/IFileSystemAPIs.cs
LibTVRefCommonTizen/Ports/FileSystemPort.cs
TVHome/TVHome.TizenTV/TVHome.TizenTV.cs
TVHome/TVHome.TizenTV/TVHome.TizenTV.csproj
TVHome/TVHome.TizenTV/res/org.tizen.example.Amazon.TizenTV.png [new file with mode: 0644]
TVHome/TVHome.TizenTV/res/org.tizen.example.Hulu.TizenTV.png [new file with mode: 0644]
TVHome/TVHome.TizenTV/res/org.tizen.example.Netflix.TizenTV.png [new file with mode: 0644]
TVHome/TVHome.TizenTV/res/org.tizen.example.Vimeo.TizenTV.png [new file with mode: 0644]
TVHome/TVHome.TizenTV/res/org.tizen.example.XBox.TizenTV.png [new file with mode: 0644]
TVHome/TVHome.TizenTV/res/org.tizen.example.Youtube.TizenTV.png [new file with mode: 0644]

index bf546cfb6d1fe5786ac2cd218a7625d41361e51e..030187a740f00fe4adcf257e60a85fe7caeeefd5 100755 (executable)
@@ -98,7 +98,9 @@ namespace LibTVRefCommonPortable.Models
                     IFileSystemAPIs fsApi = DependencyService.Get<IFileSystemAPIs>();
                     if (fsApi != null)
                     {
-                        string testScreenShot = fsApi.PlatformShareStorage + item.AppID + ".png";
+                        // Temporary, use preinstalled screenshot
+                        //string testScreenShot = fsApi.PlatformShareStorage + item.AppID + ".png";
+                        string testScreenShot = fsApi.AppResourceStorage + item.AppID + ".png";
                         if (fsApi.IsFileExist(testScreenShot))
                         {
                             recentShortcutInfo.ScreenshotPath = testScreenShot;
index d142b868a453f488cce5faed06e5d9b8192783a5..005577b2d4a8674692bd35d2bf2584c0beeea86c 100644 (file)
@@ -46,6 +46,11 @@ namespace LibTVRefCommonPortable.Utils
             get;
         }
 
+        string AppResourceStorage
+        {
+            get;
+        }
+
         string PlatformShareStorage
         {
             get;
index a5ede173b89c4fab51b77e0ffc4649a419c615cd..3479317485fe6472d28878e950d6d192f3d1a9bd 100644 (file)
@@ -41,6 +41,16 @@ namespace LibTVRefCommonTizen.Ports
             }
         }
 
+        public static string AppResourceStoragePath { private get; set; }
+
+        public string AppResourceStorage
+        {
+            get
+            {
+                return AppResourceStoragePath ?? "";
+            }
+        }
+
         /// <summary>
         /// A directory path which should be used for sharing between apps.
         /// </summary>
index 5f42d570e7655aa2011d57e402758bbb72f99636..a19d6319beba015945ec4a3c23094b0f247c9ee2 100755 (executable)
@@ -43,6 +43,7 @@ namespace TVHome.TizenTV
             base.OnCreate();
 
             FileSystemPort.AppDataStroagePath = DirectoryInfo.Data;
+            FileSystemPort.AppResourceStoragePath = DirectoryInfo.Resource;
             FileSystemPort.PlatformShareStroagePath = "/opt/usr/home/owner/share/";
 
             var app = new App(MainWindow.ScreenSize.Width,
index d66660a78436a34951c0dcc9bac15cefd1179f62..5f488dc012fa04fff114ec6248c17e901b1a6627 100755 (executable)
     <Content Include="res\img_tizen_home_list_dim_apps.png" />\r
     <Content Include="res\img_tizen_home_list_dim_recent.png" />\r
     <Content Include="res\img_tizen_home_menu_focused_bg.png" />\r
+    <Content Include="res\org.tizen.example.Amazon.TizenTV.png" />\r
+    <Content Include="res\org.tizen.example.Hulu.TizenTV.png" />\r
+    <Content Include="res\org.tizen.example.Netflix.TizenTV.png" />\r
+    <Content Include="res\org.tizen.example.Vimeo.TizenTV.png" />\r
+    <Content Include="res\org.tizen.example.XBox.TizenTV.png" />\r
+    <Content Include="res\org.tizen.example.Youtube.TizenTV.png" />\r
     <Content Include="res\screenshot.png" />\r
   </ItemGroup>\r
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />\r
diff --git a/TVHome/TVHome.TizenTV/res/org.tizen.example.Amazon.TizenTV.png b/TVHome/TVHome.TizenTV/res/org.tizen.example.Amazon.TizenTV.png
new file mode 100644 (file)
index 0000000..ed860e1
Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/org.tizen.example.Amazon.TizenTV.png differ
diff --git a/TVHome/TVHome.TizenTV/res/org.tizen.example.Hulu.TizenTV.png b/TVHome/TVHome.TizenTV/res/org.tizen.example.Hulu.TizenTV.png
new file mode 100644 (file)
index 0000000..caae66d
Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/org.tizen.example.Hulu.TizenTV.png differ
diff --git a/TVHome/TVHome.TizenTV/res/org.tizen.example.Netflix.TizenTV.png b/TVHome/TVHome.TizenTV/res/org.tizen.example.Netflix.TizenTV.png
new file mode 100644 (file)
index 0000000..3a672b0
Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/org.tizen.example.Netflix.TizenTV.png differ
diff --git a/TVHome/TVHome.TizenTV/res/org.tizen.example.Vimeo.TizenTV.png b/TVHome/TVHome.TizenTV/res/org.tizen.example.Vimeo.TizenTV.png
new file mode 100644 (file)
index 0000000..e84d9bf
Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/org.tizen.example.Vimeo.TizenTV.png differ
diff --git a/TVHome/TVHome.TizenTV/res/org.tizen.example.XBox.TizenTV.png b/TVHome/TVHome.TizenTV/res/org.tizen.example.XBox.TizenTV.png
new file mode 100644 (file)
index 0000000..a7324ed
Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/org.tizen.example.XBox.TizenTV.png differ
diff --git a/TVHome/TVHome.TizenTV/res/org.tizen.example.Youtube.TizenTV.png b/TVHome/TVHome.TizenTV/res/org.tizen.example.Youtube.TizenTV.png
new file mode 100644 (file)
index 0000000..8e2ae14
Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/org.tizen.example.Youtube.TizenTV.png differ