Remove Adaptor::Pause()/Resume() from application::OnPause()/OnResume() 58/130658/4
authortaeyoon0.lee <taeyoon0.lee@samsung.com>
Fri, 28 Apr 2017 05:01:06 +0000 (14:01 +0900)
committertaeyoon0.lee <taeyoon0.lee@samsung.com>
Wed, 24 May 2017 10:33:19 +0000 (19:33 +0900)
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 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()