Use the real screen-shot of applications.
authorSung-jae Park <nicesj.park@samsung.com>
Thu, 27 Apr 2017 23:52:52 +0000 (08:52 +0900)
committerChulSeung Kim <charles0.kim@samsung.com>
Thu, 8 Jun 2017 09:34:53 +0000 (18:34 +0900)
Try to use the real image first, if it fails fallback to the old one.
The screen shot image will be stored in "/tmp/" directory with its application Id.
To change this path, TVHome.TizenTV main C# code should be updated.

 * Recommended path is Resource-path of the application.

Change-Id: I46c2c09dc99ae4f7c0e0689ab8f23fb64eca3f31
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
LibTVRefCommonPortable/Models/RecentShortcutController.cs

index c01098568b38ca6ee4832a876bbecbecd3987c32..6d3c399c592aeeaad5ebe91d58f76e29ad84d662 100755 (executable)
@@ -118,11 +118,19 @@ namespace LibTVRefCommonPortable.Models
                     if (fsApi != null)
                     {
                         // Temporary, use preinstalled screenshot
-                        //string testScreenShot = fsApi.PlatformShareStorage + item.AppID + ".png";
-                        string testScreenShot = fsApi.AppResourceStorage + item.AppID + ".png";
-                        if (fsApi.IsFileExist(testScreenShot))
+                        string capturedAppScreen = @"/tmp/" + item.AppID + ".jpg";
+                        if (fsApi.IsFileExist(capturedAppScreen))
                         {
-                            recentShortcutInfo.ScreenshotPath = testScreenShot;
+                            recentShortcutInfo.ScreenshotPath = capturedAppScreen;
+                        }
+                        else
+                        {
+                            //string testScreenShot = fsApi.PlatformShareStorage + item.AppID + ".png";
+                            string testScreenShot = fsApi.AppResourceStorage + item.AppID + ".png";
+                            if (fsApi.IsFileExist(testScreenShot))
+                            {
+                                recentShortcutInfo.ScreenshotPath = testScreenShot;
+                            }
                         }
                     }
                 }