[Tizen] NotifySceneCreated should be called in NUI 21/131421/1 accepted/tizen/unified/20170529.163129 submit/tizen/20170529.055701 tizen_4.0.m1_release
authorHeeyong Song <heeyong.song@samsung.com>
Mon, 29 May 2017 05:42:10 +0000 (14:42 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 29 May 2017 05:42:10 +0000 (14:42 +0900)
Change-Id: Ibd6495fb500cf631679b94e84cce709a20abfc08

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

index e919f22..1bcf8d4 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;
 };