X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=adaptors%2Fcommon%2Fapplication-impl.cpp;h=c9497589db9c09621639f90eae42e45846083d99;hb=ab5a19a8b72cc2dd6e1573df1f37ce25be584d09;hp=e919f224930f92974b9bbf4b330afa72306ec959;hpb=7a73e6bf7677d192e94ed72791914d8e3d35a81f;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/adaptors/common/application-impl.cpp b/adaptors/common/application-impl.cpp index e919f22..c949758 100644 --- a/adaptors/common/application-impl.cpp +++ b/adaptors/common/application-impl.cpp @@ -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()