From: minho.sun Date: Mon, 14 Aug 2017 11:18:30 +0000 (+0900) Subject: [Tizen] Fix TCT Not Excuted. X-Git-Tag: preview1-00180^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7dc2bd1b9c11a93dc57863ded092b4c6b68b8590;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Tizen] Fix TCT Not Excuted. This reverts commit 6b3d292ccc74212a63981e3c0764618829df23aa. Change-Id: Ic3abba86854e9df32f549d8e54df3898cdefd74d --- 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(); } ///