From: taeyoon0.lee Date: Fri, 28 Apr 2017 05:01:06 +0000 (+0900) Subject: Remove Adaptor::Pause()/Resume() from application::OnPause()/OnResume() X-Git-Tag: dali_1.2.42~5^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git;a=commitdiff_plain;h=e69dfc73327350634a51b68083f9adb22a042205 Remove Adaptor::Pause()/Resume() from application::OnPause()/OnResume() 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 --- diff --git a/adaptors/common/application-impl.cpp b/adaptors/common/application-impl.cpp index 931ba12..876cc98 100644 --- a/adaptors/common/application-impl.cpp +++ b/adaptors/common/application-impl.cpp @@ -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()