[3.0] Remove Adaptor::Pause()/Resume() from application::OnPause()/OnResume() 96/127596/4
authortaeyoon0.lee <taeyoon0.lee@samsung.com>
Fri, 28 Apr 2017 05:01:06 +0000 (14:01 +0900)
committerTaeyoon Lee <taeyoon0.lee@samsung.com>
Fri, 26 May 2017 05:32:14 +0000 (05:32 +0000)
In ambient state the app wants to draw something, but is prevented by the pause mechanism.
Note that the pause should still occur when the window is hidden (iconify event).

Change-Id: I1ea8fcd81edf4d45bf322373a69a39d5365ed1a6

adaptors/common/application-impl.cpp

index bdc6268..bd885e6 100644 (file)
@@ -237,7 +237,9 @@ void Application::OnTerminate()
 
 void Application::OnPause()
 {
-  mAdaptor->Pause();
+  // 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 );
 }
@@ -248,7 +250,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 );
-  mAdaptor->Resume();
+
+  // DALi just delivers the framework Resume event to the application.
+  // Resuming DALi core only occurs on the Window Show framework event
 }
 
 void Application::OnReset()