[Tizen] Fix TCT Not Excuted.
authorminho.sun <minho.sun@samsung.com>
Mon, 14 Aug 2017 11:18:30 +0000 (20:18 +0900)
committerminho.sun <minho.sun@samsung.com>
Mon, 14 Aug 2017 11:18:34 +0000 (20:18 +0900)
This reverts commit 6b3d292ccc74212a63981e3c0764618829df23aa.

Change-Id: Ic3abba86854e9df32f549d8e54df3898cdefd74d

src/Tizen.NUI/src/internal/NUICoreBackend.cs
src/Tizen.NUI/src/public/NUIApplication.cs

index efa71e0..05744b8 100755 (executable)
@@ -106,6 +106,7 @@ namespace Tizen.NUI
         /// <param name="args">Arguments from commandline.</param>
         public void Run(string[] args)
         {
+            TizenSynchronizationContext.Initialize();
             _application.BatteryLow += OnBatteryLow;
             _application.LanguageChanged += OnLanguageChanged;
             _application.MemoryLow += OnMemoryLow;
index 84c21b5..32f9950 100755 (executable)
@@ -167,31 +167,10 @@ namespace Tizen.NUI
         /// <param name="args">Arguments from commandline.</param>
         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<AppControlReceivedEventArgs>(EventType.AppControlReceived, OnAppControlReceived);
             Backend.AddEventHandler(EventType.Resumed, OnResume);
             Backend.AddEventHandler(EventType.Paused, OnPause);
-            Backend.AddEventHandler(EventType.Terminated, OnTerminate);
-            Backend.AddEventHandler<RegionFormatChangedEventArgs>(EventType.RegionFormatChanged, OnRegionFormatChanged);
-            Backend.AddEventHandler<LowMemoryEventArgs>(EventType.LowMemory, OnLowMemory);
-            Backend.AddEventHandler<LowBatteryEventArgs>(EventType.LowBattery, OnLowBattery);
-            Backend.AddEventHandler<LocaleChangedEventArgs>(EventType.LocaleChanged, OnLocaleChanged);
-
-            Backend.Run(argsClone);
+            base.Run(args);
         }
 
         /// <summary>
@@ -199,7 +178,7 @@ namespace Tizen.NUI
         /// </summary>
         public override void Exit()
         {
-            Backend.Exit();
+            base.Exit();
         }
 
         /// <summary>