Revert "[Tizen] Added 'make clean' on each profile build."
[platform/core/uifw/dali-adaptor.git] / adaptors / common / application-impl.cpp
index e919f22..c949758 100644 (file)
@@ -200,6 +200,11 @@ void Application::DoInit()
   }
 }
 
+void Application::DoStart()
+{
+  mAdaptor->NotifySceneCreated();
+}
+
 void Application::DoTerminate()
 {
   if( mAdaptor )
@@ -246,7 +251,7 @@ void Application::OnInit()
   Dali::Application application(this);
   mInitSignal.Emit( application );
 
-  mAdaptor->NotifySceneCreated();
+  DoStart();
 }
 
 void Application::OnTerminate()
@@ -262,7 +267,9 @@ void Application::OnTerminate()
 
 void Application::OnPause()
 {
-  DoPause();
+  // A DALi app should handle Pause/Resume events.
+  // DALi just delivers the framework Pause event to the application, but not actually pause DALi core.
+  // Pausing DALi core only occurs on the Window Hidden framework event
   Dali::Application application(this);
   mPauseSignal.Emit( application );
 }
@@ -273,7 +280,9 @@ void Application::OnResume()
   // This ensures we do not just redraw the last frame before pausing if that's not required
   Dali::Application application(this);
   mResumeSignal.Emit( application );
-  DoResume();
+
+  // DALi just delivers the framework Resume event to the application.
+  // Resuming DALi core only occurs on the Window Show framework event
 }
 
 void Application::OnReset()