From 937ac43a08a7dc51d816818785ef0db24e4f5e37 Mon Sep 17 00:00:00 2001 From: ChulSeung Kim Date: Wed, 14 Jun 2017 13:57:55 +0900 Subject: [PATCH] Set TVHome hidden, Fix No Recent displaying issue Change-Id: Id43cbe959a029a1ea9184a249769628998fdb94f --- LibTVRefCommonPortable/Utils/RecentShortcutStorage.cs | 3 +-- LibTVRefCommonTizen/LibTVRefCommonTizen.project.json | 2 +- LibTVRefCommonTizen/Ports/ApplicationManagerPort.cs | 10 ++++++++++ TVApps/TVApps.TizenTV/tizen-manifest.xml | 2 +- TVHome/TVHome.TizenTV/tizen-manifest.xml | 4 ++-- 5 files changed, 15 insertions(+), 6 deletions(-) diff --git a/LibTVRefCommonPortable/Utils/RecentShortcutStorage.cs b/LibTVRefCommonPortable/Utils/RecentShortcutStorage.cs index b993aff..828e007 100755 --- a/LibTVRefCommonPortable/Utils/RecentShortcutStorage.cs +++ b/LibTVRefCommonPortable/Utils/RecentShortcutStorage.cs @@ -59,8 +59,7 @@ namespace LibTVRefCommonPortable.Utils } if (item.Applabel == null || item.Applabel.Length == 0 || - item.LaunchedTime.CompareTo(new DateTime()) == 0 || - item.Uri == null || item.Uri.Length == 0) + item.LaunchedTime.CompareTo(new DateTime()) == 0) { continue; } diff --git a/LibTVRefCommonTizen/LibTVRefCommonTizen.project.json b/LibTVRefCommonTizen/LibTVRefCommonTizen.project.json index cb8dbec..828651e 100644 --- a/LibTVRefCommonTizen/LibTVRefCommonTizen.project.json +++ b/LibTVRefCommonTizen/LibTVRefCommonTizen.project.json @@ -4,7 +4,7 @@ "Tizen.NET": "3.0.0-pre2", "Tizen.Xamarin.Forms.Extension": "2.3.5-r233-004", "Xamarin.Forms": "2.3.5-r233-004", - "Xamarin.Forms.Platform.Tizen": "2.3.5-r233-004" + "Xamarin.Forms.Platform.Tizen": "2.3.5-r233-008" }, "frameworks": { "netcoreapp1.0": { diff --git a/LibTVRefCommonTizen/Ports/ApplicationManagerPort.cs b/LibTVRefCommonTizen/Ports/ApplicationManagerPort.cs index ec7c8d8..d5621fd 100755 --- a/LibTVRefCommonTizen/Ports/ApplicationManagerPort.cs +++ b/LibTVRefCommonTizen/Ports/ApplicationManagerPort.cs @@ -89,7 +89,9 @@ namespace LibTVRefCommonTizen.Ports /// The list of the recent applications public IEnumerable GetRecentApplications() { + bool isNoRecentApps = true; List resultList = new List(); + try { IEnumerable recentApps = ApplicationManager.GetRecentApplications(); @@ -103,6 +105,8 @@ namespace LibTVRefCommonTizen.Ports continue; } + DbgPort.D("Recent App (" + app.Label + "): " + app.ApplicationId); + resultList.Add(new RecentApp() { InstanceID = app.InstanceId, @@ -113,6 +117,7 @@ namespace LibTVRefCommonTizen.Ports LaunchedTime = app.LaunchTime, Uri = app.Uri, }); + isNoRecentApps = false; } } catch (InvalidOperationException) @@ -121,6 +126,11 @@ namespace LibTVRefCommonTizen.Ports return null; } + if (isNoRecentApps) + { + DbgPort.E("No Recent Apps!!!"); + } + return resultList; } diff --git a/TVApps/TVApps.TizenTV/tizen-manifest.xml b/TVApps/TVApps.TizenTV/tizen-manifest.xml index 2b821a3..7c7a788 100644 --- a/TVApps/TVApps.TizenTV/tizen-manifest.xml +++ b/TVApps/TVApps.TizenTV/tizen-manifest.xml @@ -1,7 +1,7 @@  - + xaapps.png diff --git a/TVHome/TVHome.TizenTV/tizen-manifest.xml b/TVHome/TVHome.TizenTV/tizen-manifest.xml index ba93e06..3df57de 100755 --- a/TVHome/TVHome.TizenTV/tizen-manifest.xml +++ b/TVHome/TVHome.TizenTV/tizen-manifest.xml @@ -1,11 +1,11 @@ - + xahome.png - + xaapps.png -- 2.34.1