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;
+ }
}
}
}