From 385faa9be07b8f67d8fc4f1b39c3105417a4fa8d Mon Sep 17 00:00:00 2001 From: "dongsug.song" Date: Tue, 2 May 2017 12:49:35 +0900 Subject: [PATCH] ViewRegistryHelper class is moved to Application side - ViewRegistryHelper class is only required for the application which uses Dali json theme/style Builder - ViewRegistryHelper uses C# System.Runtime library and this causes some delay at launching time (ex: KantM board, 300ms delay) - This is not needed for all application (no need to included in NUI) so it is moved to application side. Conflicts: NUISamples/NUISamples/NUISamples.TizenTV/examples/Main.cs Change-Id: I5ee38801a1f81991f9d6e76a0cbaa6b59d4a3d4f Signed-off-by: dongsug.song --- src/Tizen.NUI/Tizen.NUI.csproj | 1 - src/Tizen.NUI/src/internal/Application.cs | 2 +- src/Tizen.NUI/src/internal/ViewRegistryHelper.cs | 15 --------------- 3 files changed, 1 insertion(+), 17 deletions(-) delete mode 100755 src/Tizen.NUI/src/internal/ViewRegistryHelper.cs diff --git a/src/Tizen.NUI/Tizen.NUI.csproj b/src/Tizen.NUI/Tizen.NUI.csproj index 9d88869..07bed33 100755 --- a/src/Tizen.NUI/Tizen.NUI.csproj +++ b/src/Tizen.NUI/Tizen.NUI.csproj @@ -287,7 +287,6 @@ - diff --git a/src/Tizen.NUI/src/internal/Application.cs b/src/Tizen.NUI/src/internal/Application.cs index 89de23b..5188882 100755 --- a/src/Tizen.NUI/src/internal/Application.cs +++ b/src/Tizen.NUI/src/internal/Application.cs @@ -1104,7 +1104,7 @@ namespace Tizen.NUI LOG(" NewApplication(string stylesheet, Application.WindowMode windowMode) is called! "); // register all Views with the type registry, so that can be created / styled via JSON - ViewRegistryHelper.Initialize(); + //ViewRegistryHelper.Initialize(); //moved to Application side. Application ret = New(1, stylesheet, windowMode); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); diff --git a/src/Tizen.NUI/src/internal/ViewRegistryHelper.cs b/src/Tizen.NUI/src/internal/ViewRegistryHelper.cs deleted file mode 100755 index 6df88e5..0000000 --- a/src/Tizen.NUI/src/internal/ViewRegistryHelper.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; - -// include all custom views here which will be -namespace Tizen.NUI -{ - public class ViewRegistryHelper - { - static public void Initialize() - { - // Register all views with the type registry - System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (typeof(Tizen.NUI.Spin).TypeHandle); - } - } -} - -- 2.7.4