[Tizen] NotifySceneCreated should be called in NUI 81/131881/1
authorJinho, Lee <jeano.lee@samsung.com>
Wed, 31 May 2017 02:47:51 +0000 (11:47 +0900)
committerJinho, Lee <jeano.lee@samsung.com>
Wed, 31 May 2017 02:47:52 +0000 (11:47 +0900)
This reverts commit 7f401e1c48a1dc8a0207c0fdcee9699555c71df1.

Change-Id: I752da9ce7f902312d927b303bd3affd1e695a83d

adaptors/common/application-impl.cpp
adaptors/common/application-impl.h

index 5dfa505..dedf854 100644 (file)
@@ -83,6 +83,7 @@ Application::Application( int* argc, char** argv[], const std::string& styleshee
   mName(),
   mStylesheet( stylesheet ),
   mEnvironmentOptions(),
+  mInitialized( false ),
   mSlotDelegate( this )
 {
   // Get mName from environment options
@@ -198,6 +199,12 @@ void Application::DoInit()
   {
     Dali::StyleMonitor::Get().SetTheme( mStylesheet );
   }
+
+  if( !mInitialized )
+  {
+    mAdaptor->NotifySceneCreated();
+    mInitialized = true;
+  }
 }
 
 void Application::DoTerminate()
@@ -230,6 +237,8 @@ void Application::OnInit()
 {
   mFramework->AddAbortCallback( MakeCallback( this, &Application::QuitFromMainLoop ) );
 
+  mInitialized = true;
+
   DoInit();
 
   // Wire up the LifecycleController
index aeadb17..642bf74 100644 (file)
@@ -342,6 +342,7 @@ private:
   std::string                           mStylesheet;
   EnvironmentOptions                    mEnvironmentOptions;
   bool                                  mUseRemoteSurface;
+  bool                                  mInitialized;
 
   SlotDelegate< Application >           mSlotDelegate;
 };