From: minho.sun Date: Wed, 9 Aug 2017 02:30:21 +0000 (+0900) Subject: [Tizen] Fix TCT Not Excuted. X-Git-Tag: submit/trunk/20170823.075128~91^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=78cfaa9ffd9915ae744ec49073e08820b5918a89;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Tizen] Fix TCT Not Excuted. Change-Id: I51e90c252be1e0796f8269720c91df28db920ca8 Signed-off-by: minho.sun --- diff --git a/src/Tizen.NUI/src/internal/NUICoreBackend.cs b/src/Tizen.NUI/src/internal/NUICoreBackend.cs index efa71e0..05744b8 100755 --- a/src/Tizen.NUI/src/internal/NUICoreBackend.cs +++ b/src/Tizen.NUI/src/internal/NUICoreBackend.cs @@ -106,6 +106,7 @@ namespace Tizen.NUI /// Arguments from commandline. public void Run(string[] args) { + TizenSynchronizationContext.Initialize(); _application.BatteryLow += OnBatteryLow; _application.LanguageChanged += OnLanguageChanged; _application.MemoryLow += OnMemoryLow; diff --git a/src/Tizen.NUI/src/public/NUIApplication.cs b/src/Tizen.NUI/src/public/NUIApplication.cs index 84c21b5..32f9950 100755 --- a/src/Tizen.NUI/src/public/NUIApplication.cs +++ b/src/Tizen.NUI/src/public/NUIApplication.cs @@ -167,31 +167,10 @@ namespace Tizen.NUI /// Arguments from commandline. public override void Run(string[] args) { - string[] argsClone = null; - - if (args == null) - { - argsClone = new string[1]; - } - else - { - argsClone = new string[args.Length + 1]; - args.CopyTo(argsClone, 1); - } - argsClone[0] = string.Empty; - Backend.AddEventHandler(EventType.PreCreated, OnPreCreate); - Backend.AddEventHandler(EventType.Created, OnCreate); - Backend.AddEventHandler(EventType.AppControlReceived, OnAppControlReceived); Backend.AddEventHandler(EventType.Resumed, OnResume); Backend.AddEventHandler(EventType.Paused, OnPause); - Backend.AddEventHandler(EventType.Terminated, OnTerminate); - Backend.AddEventHandler(EventType.RegionFormatChanged, OnRegionFormatChanged); - Backend.AddEventHandler(EventType.LowMemory, OnLowMemory); - Backend.AddEventHandler(EventType.LowBattery, OnLowBattery); - Backend.AddEventHandler(EventType.LocaleChanged, OnLocaleChanged); - - Backend.Run(argsClone); + base.Run(args); } /// @@ -199,7 +178,7 @@ namespace Tizen.NUI /// public override void Exit() { - Backend.Exit(); + base.Exit(); } ///