From 7dc2bd1b9c11a93dc57863ded092b4c6b68b8590 Mon Sep 17 00:00:00 2001 From: "minho.sun" Date: Mon, 14 Aug 2017 20:18:30 +0900 Subject: [PATCH] [Tizen] Fix TCT Not Excuted. This reverts commit 6b3d292ccc74212a63981e3c0764618829df23aa. Change-Id: Ic3abba86854e9df32f549d8e54df3898cdefd74d --- src/Tizen.NUI/src/internal/NUICoreBackend.cs | 1 + src/Tizen.NUI/src/public/NUIApplication.cs | 25 ++----------------------- 2 files changed, 3 insertions(+), 23 deletions(-) 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(); } /// -- 2.7.4