When user hide window, adaptor will be paused.
In this situation, user cannot add callback function to idle event.
But Application should be terminated when Quit() function is called evenif window is hide.
So add QuitFromMainLoop function to idle event with force option.
Change-Id: I4fab7310b256e124be3240179330bac5be3fe3ed
Signed-off-by: minho.sun <minho.sun@samsung.com>
void Application::Quit()
{
// Actually quit the application.
- AddIdle( MakeCallback( this, &Application::QuitFromMainLoop ) );
+ Internal::Adaptor::Adaptor::GetImplementation(*mAdaptor).AddIdle( MakeCallback( this, &Application::QuitFromMainLoop ), true );
}
void Application::QuitFromMainLoop()