Merge "Remove Adaptor::Pause()/Resume() from application::OnPause()/OnResume()" into...
authortaeyoon0.lee <taeyoon0.lee@samsung.com>
Fri, 26 May 2017 06:46:02 +0000 (06:46 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Fri, 26 May 2017 06:46:02 +0000 (06:46 +0000)
adaptors/common/application-impl.cpp

index 931ba12..876cc98 100644 (file)
@@ -262,7 +262,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 +275,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()