Fix to get a Stage::SceneCreatedSignal() 88/131388/3
authorHeeyong Song <heeyong.song@samsung.com>
Mon, 29 May 2017 01:28:06 +0000 (10:28 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Fri, 2 Jun 2017 09:15:22 +0000 (18:15 +0900)
- The signal should be emitted after Application::InitSignal() is emitted.

Change-Id: I03256291e0a31ed85b169eb56effdb787a50e28d

adaptors/common/application-impl.cpp
adaptors/common/application-impl.h
adaptors/devel-api/adaptor-framework/application-extensions.cpp
adaptors/devel-api/adaptor-framework/application-extensions.h

index 876cc98..c949758 100644 (file)
@@ -198,7 +198,10 @@ void Application::DoInit()
   {
     Dali::StyleMonitor::Get().SetTheme( mStylesheet );
   }
+}
 
+void Application::DoStart()
+{
   mAdaptor->NotifySceneCreated();
 }
 
@@ -247,6 +250,8 @@ void Application::OnInit()
 
   Dali::Application application(this);
   mInitSignal.Emit( application );
+
+  DoStart();
 }
 
 void Application::OnTerminate()
index aeadb17..4af4577 100644 (file)
@@ -141,6 +141,11 @@ public: // Lifecycle functionality
   void DoInit();
 
   /**
+   * Called after OnInit is called or the framework is started.
+   */
+  void DoStart();
+
+  /**
    * Called when OnTerminate is called or the framework is terminated.
    */
   void DoTerminate();
index e03b298..8cd32c8 100755 (executable)
@@ -47,6 +47,11 @@ void ApplicationExtensions::Init()
   Internal::Adaptor::GetImplementation(*mApplication).DoInit();
 }
 
+void ApplicationExtensions::Start()
+{
+  Internal::Adaptor::GetImplementation(*mApplication).DoStart();
+}
+
 void ApplicationExtensions::Terminate()
 {
   Internal::Adaptor::GetImplementation(*mApplication).DoTerminate();
index bee9629..51f55a2 100755 (executable)
@@ -56,11 +56,16 @@ public:
 
 
  /**
-   * @brief Called wwhen the framework is initialised.
+   * @brief Called when the framework is initialised.
    * @SINCE_1_2.7
    */
   void Init();
 
+  /**
+    * @brief Called when the framework is started.
+    */
+   void Start();
+
  /**
    * @brief Called when the framework is terminated.
    * @SINCE_1_2.7